aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-calendar-item.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-15 23:16:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-16 10:50:05 +0800
commitcae22334fa6bc395ccc421b09e0af94c89297c41 (patch)
tree84881f467c0448db044d8bb3533e044a7152bb2b /widgets/misc/e-calendar-item.c
parentd37784ed3db20fd74ea4b8d9fdfe58518370cea2 (diff)
downloadgsoc2013-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/misc/e-calendar-item.c')
-rw-r--r--widgets/misc/e-calendar-item.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/widgets/misc/e-calendar-item.c b/widgets/misc/e-calendar-item.c
index 6f54327033..9829d81279 100644
--- a/widgets/misc/e-calendar-item.c
+++ b/widgets/misc/e-calendar-item.c
@@ -1023,7 +1023,6 @@ e_calendar_item_draw (GnomeCanvasItem *canvas_item,
{
ECalendarItem *calitem;
GtkStyle *style;
- GdkGC *base_gc, *bg_gc;
gint char_height, row, col, row_y, bar_height, col_x;
gint xthickness, ythickness;
PangoFontDescription *font_desc;
@@ -1052,8 +1051,6 @@ e_calendar_item_draw (GnomeCanvasItem *canvas_item,
PANGO_PIXELS (pango_font_metrics_get_descent (font_metrics));
xthickness = style->xthickness;
ythickness = style->ythickness;
- base_gc = style->base_gc[GTK_STATE_NORMAL];
- bg_gc = style->bg_gc[GTK_STATE_NORMAL];
base = style->base[GTK_STATE_NORMAL];
bg = style->bg[GTK_STATE_NORMAL];
@@ -1164,7 +1161,6 @@ e_calendar_item_draw_month (ECalendarItem *calitem,
PangoFontMetrics *font_metrics;
PangoLayout *layout;
cairo_t *cr;
- GdkColor fg;
#if 0
g_print ("In e_calendar_item_draw_month: %i,%i %ix%i row:%i col:%i\n",
@@ -1191,8 +1187,6 @@ e_calendar_item_draw_month (ECalendarItem *calitem,
ythickness = style->ythickness;
fg_gc = style->fg_gc[GTK_STATE_NORMAL];
- fg = style->fg[GTK_STATE_NORMAL];
-
pango_font_metrics_unref (font_metrics);
/* Calculate the top-left position of the entire month display. */
@@ -1396,7 +1390,7 @@ e_calendar_item_draw_day_numbers (ECalendarItem *calitem,
GnomeCanvasItem *item;
GtkWidget *widget;
GtkStyle *style;
- PangoFontDescription *font_desc, *wkfont_desc;
+ PangoFontDescription *font_desc;
GdkGC *fg_gc;
GdkColor *bg_color, *fg_color, *box_color;
struct tm today_tm;
@@ -1427,9 +1421,6 @@ e_calendar_item_draw_day_numbers (ECalendarItem *calitem,
font_desc = calitem->font_desc;
if (!font_desc)
font_desc = style->font_desc;
- wkfont_desc = calitem->week_number_font_desc;
- if (!wkfont_desc)
- wkfont_desc = font_desc;
fg_gc = style->fg_gc[GTK_STATE_NORMAL];
pango_context = gtk_widget_get_pango_context (widget);
@@ -1732,8 +1723,6 @@ e_calendar_item_get_week_number (ECalendarItem *calitem,
g_date_add_days (&date, 7 - weekday);
else
g_date_subtract_days (&date, weekday);
-
- weekday = g_date_get_weekday (&date) - 1;
}
/* Calculate the day of the year, from 0 to 365. */