From e34964802c8848738a705cdabc127c57c1b112ef Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 21 Nov 2017 20:12:23 -0200 Subject: [PATCH] month-view: remove unused variable --- src/views/gcal-month-view.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/views/gcal-month-view.c b/src/views/gcal-month-view.c index b4d7f2be..90be72a0 100644 --- a/src/views/gcal-month-view.c +++ b/src/views/gcal-month-view.c @@ -375,7 +375,6 @@ calculate_multiday_event_blocks (GcalMonthView *self, gboolean was_visible; gdouble old_y; gdouble y; - gint current_part_length; gint first_cell; gint last_cell; gint i; @@ -383,7 +382,6 @@ calculate_multiday_event_blocks (GcalMonthView *self, GCAL_ENTRY; old_y = -1.0; - current_part_length = 0; was_visible = FALSE; /* Get the event cells */ @@ -437,7 +435,7 @@ calculate_multiday_event_blocks (GcalMonthView *self, if (!block || y != old_y || different_row || was_visible != visible_at_range) { - GCAL_TRACE_MSG ("Breaking event at cell %d (previous section was %d)", i, i - current_part_length); + GCAL_TRACE_MSG ("Breaking event at cell %d", i); /* Only create a new event widget after the first one is consumed */ if (block) @@ -457,7 +455,6 @@ calculate_multiday_event_blocks (GcalMonthView *self, aux = g_list_append (aux, event_widget); } - current_part_length = 1; old_y = y; /* Add a new block */