[gnome-calendar] month-view: remove unused variable



commit e34964802c8848738a705cdabc127c57c1b112ef
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Nov 21 20:12:23 2017 -0200

    month-view: remove unused variable

 src/views/gcal-month-view.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/views/gcal-month-view.c b/src/views/gcal-month-view.c
index b4d7f2b..90be72a 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 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]