diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-01-15 23:16:25 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-01-16 10:50:05 +0800 |
commit | cae22334fa6bc395ccc421b09e0af94c89297c41 (patch) | |
tree | 84881f467c0448db044d8bb3533e044a7152bb2b /widgets/table/e-cell-text.c | |
parent | d37784ed3db20fd74ea4b8d9fdfe58518370cea2 (diff) | |
download | gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.gz gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.bz2 gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.lz gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.xz gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.zst gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.zip |
Remove dead assignments found by clang.
Diffstat (limited to 'widgets/table/e-cell-text.c')
-rw-r--r-- | widgets/table/e-cell-text.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 24f7dc5cd8..852f8ec980 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -1299,17 +1299,6 @@ ect_free_state (ECellView *ecell_view, gint model_col, gint view_col, gint row, g_free (save_state); } -#define FONT_NAME "Sans Regular" - -static PangoFontDescription * -get_font_description_for_size (double h) -{ - PangoFontDescription *font_des = pango_font_description_new (); - pango_font_description_set_family (font_des, FONT_NAME); - pango_font_description_set_size (font_des, h * PANGO_SCALE); - return font_des; -} - static void get_font_size (PangoLayout *layout, PangoFontDescription *font, const gchar *text, double *width, double *height) @@ -1334,7 +1323,7 @@ ect_print (ECellView *ecell_view, GtkPrintContext *context, gint model_col, gint view_col, gint row, double width, double height) { - PangoFontDescription *font_des = get_font_description_for_size (12); + PangoFontDescription *font_des; PangoLayout *layout; PangoContext *pango_context; PangoFontMetrics *font_metrics; |