summaryrefslogtreecommitdiff
path: root/pango/pangocairo-coretextfont.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-18 10:08:39 -0700
committerMatthias Clasen <mclasen@redhat.com>2019-07-18 10:08:39 -0700
commit2353f65c65ca234fffa72d002d6b3c4a5e302999 (patch)
tree83cfdd03a6fa073812b1a46b777130c9af741aa7 /pango/pangocairo-coretextfont.c
parent83de8d4c11b00a155b926867e3606db74d5fb6c2 (diff)
downloadpango-2353f65c65ca234fffa72d002d6b3c4a5e302999.tar.gz
coretext: Remove unused code
Diffstat (limited to 'pango/pangocairo-coretextfont.c')
-rw-r--r--pango/pangocairo-coretextfont.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/pango/pangocairo-coretextfont.c b/pango/pangocairo-coretextfont.c
index aea2d207..fa9f383a 100644
--- a/pango/pangocairo-coretextfont.c
+++ b/pango/pangocairo-coretextfont.c
@@ -96,30 +96,6 @@ pango_cairo_core_text_font_create_font_face (PangoCairoFont *font)
return cairo_face;
}
-static int
-max_glyph_width (PangoLayout *layout)
-{
- int max_width = 0;
- GSList *l, *r;
-
- for (l = pango_layout_get_lines_readonly (layout); l; l = l->next)
- {
- PangoLayoutLine *line = l->data;
-
- for (r = line->runs; r; r = r->next)
- {
- PangoGlyphString *glyphs = ((PangoGlyphItem *)r->data)->glyphs;
- int i;
-
- for (i = 0; i < glyphs->num_glyphs; i++)
- if (glyphs->glyphs[i].geometry.width > max_width)
- max_width = glyphs->glyphs[i].geometry.width;
- }
- }
-
- return max_width;
-}
-
static PangoFontMetrics *
pango_cairo_core_text_font_create_base_metrics_for_context (PangoCairoFont *font,
PangoContext *context)