Remove redundant code.

This commit is contained in:
Michael Drake 2014-09-06 11:26:02 +01:00
parent d0a4020d16
commit d3d682e51b
1 changed files with 0 additions and 6 deletions

View File

@ -233,17 +233,11 @@ bool nsfont_paint(int x, int y, const char *string, size_t length,
PangoFontDescription *desc; PangoFontDescription *desc;
PangoLayout *layout; PangoLayout *layout;
PangoLayoutLine *line; PangoLayoutLine *line;
gint size;
if (length == 0) if (length == 0)
return true; return true;
desc = nsfont_style_to_description(fstyle); 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); layout = pango_cairo_create_layout(current_cr);