From d3d682e51b3cca3c643294df6d5490c8f313b56f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 6 Sep 2014 11:26:02 +0100 Subject: Remove redundant code. --- gtk/font_pango.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'gtk/font_pango.c') diff --git a/gtk/font_pango.c b/gtk/font_pango.c index b6569ced6..1cb536e9e 100644 --- a/gtk/font_pango.c +++ b/gtk/font_pango.c @@ -233,17 +233,11 @@ bool nsfont_paint(int x, int y, const char *string, size_t length, PangoFontDescription *desc; PangoLayout *layout; PangoLayoutLine *line; - gint size; if (length == 0) return true; desc = nsfont_style_to_description(fstyle); - size = (gint)(pango_font_description_get_size(desc)); - if (pango_font_description_get_size_is_absolute(desc)) - pango_font_description_set_absolute_size(desc, size); - else - pango_font_description_set_size(desc, size); layout = pango_cairo_create_layout(current_cr); -- cgit v1.2.3