[pango] coretext: Remove unused code
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] coretext: Remove unused code
- Date: Thu, 18 Jul 2019 17:09:02 +0000 (UTC)
commit 2353f65c65ca234fffa72d002d6b3c4a5e302999
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jul 18 10:08:39 2019 -0700
coretext: Remove unused code
pango/pangocairo-coretextfont.c | 24 ------------------------
1 file changed, 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]