summaryrefslogtreecommitdiff
path: root/pango/pangocairo-font.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2011-06-17 17:08:35 -0400
committerBehdad Esfahbod <behdad@behdad.org>2011-06-17 17:08:35 -0400
commita0296ccbdd570b66a36bf4226760aed312d020d4 (patch)
tree950a42281d637512381f147eccf01d4f05ffc19f /pango/pangocairo-font.c
parent26092c20b0936ff669513fbd64537123b99d036e (diff)
downloadpango-a0296ccbdd570b66a36bf4226760aed312d020d4.tar.gz
Bug 652841 - Various pieces of dead code found by gcc/clang static analyzer
Diffstat (limited to 'pango/pangocairo-font.c')
-rw-r--r--pango/pangocairo-font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangocairo-font.c b/pango/pangocairo-font.c
index 8dc8df04..2d5ee7fb 100644
--- a/pango/pangocairo-font.c
+++ b/pango/pangocairo-font.c
@@ -378,7 +378,7 @@ _pango_cairo_font_private_get_hex_box_info (PangoCairoFontPrivate *cf_priv)
cairo_scaled_font_t *scaled_font, *scaled_mini_font;
PangoMatrix pango_ctm;
cairo_matrix_t cairo_ctm;
- PangoGravity gravity;
+ /*PangoGravity gravity;*/
if (!cf_priv)
return NULL;
@@ -395,7 +395,7 @@ _pango_cairo_font_private_get_hex_box_info (PangoCairoFontPrivate *cf_priv)
font_options = cairo_font_options_create ();
desc = pango_font_describe_with_absolute_size ((PangoFont *)cf_priv->cfont);
size = pango_font_description_get_size (desc) / (1.*PANGO_SCALE);
- gravity = pango_font_description_get_gravity (desc);
+ /*gravity = pango_font_description_get_gravity (desc);*/
cairo_scaled_font_get_ctm (scaled_font, &cairo_ctm);
cairo_scaled_font_get_font_options (scaled_font, font_options);