[planner: 42/61] gantt-row: Drop unused break_gc and break_stipple




commit 72faf8b9530ca5444cc82e2f94a26087590674a7
Author: Mart Raudsepp <leio gentoo org>
Date:   Tue Dec 29 01:36:06 2020 +0200

    gantt-row: Drop unused break_gc and break_stipple

 src/planner-gantt-row.c | 27 ---------------------------
 1 file changed, 27 deletions(-)
---
diff --git a/src/planner-gantt-row.c b/src/planner-gantt-row.c
index bb53b4b4..a66f51f9 100644
--- a/src/planner-gantt-row.c
+++ b/src/planner-gantt-row.c
@@ -116,7 +116,6 @@ typedef enum
 struct _PlannerGanttRowPriv {
        /* FIXME: Don't need those per gantt row. */
        GdkGC       *complete_gc;
-       GdkGC       *break_gc;
        GdkGC       *fill_gc;
        GdkGC       *frame_gc;
        GdkGC       *ttask_gc;
@@ -276,8 +275,6 @@ static GnomeCanvasItemClass *parent_class;
 static guint                 signals[LAST_SIGNAL];
 static GdkBitmap            *complete_stipple = NULL;
 static gchar                 complete_stipple_pattern[] = { 0x02, 0x01 };
-static GdkBitmap            *break_stipple = NULL;
-static gchar                 break_stipple_pattern[] = { 0x03 };
 
 /* Data related to dragging items */
 static GnomeCanvasItem   *drag_item;
@@ -854,27 +851,10 @@ gantt_row_realize (GnomeCanvasItem *item)
                g_object_ref (complete_stipple);
        }
 
-       if (break_stipple == NULL) {
-               break_stipple = gdk_bitmap_create_from_data (
-                       NULL,
-                       break_stipple_pattern,
-                       6,
-                       1);
-
-               g_object_add_weak_pointer (G_OBJECT (break_stipple),
-                                          (gpointer) &break_stipple);
-       } else {
-               g_object_ref (break_stipple);
-       }
-
        priv->complete_gc = gdk_gc_new (item->canvas->layout.bin_window);
        gdk_gc_set_stipple (priv->complete_gc, complete_stipple);
        gdk_gc_set_fill (priv->complete_gc, GDK_STIPPLED);
 
-       priv->break_gc = gdk_gc_new (item->canvas->layout.bin_window);
-       gdk_gc_set_stipple (priv->break_gc, break_stipple);
-       gdk_gc_set_fill (priv->break_gc, GDK_STIPPLED);
-
        priv->fill_gc = gdk_gc_new (item->canvas->layout.bin_window);
 
        priv->frame_gc = gdk_gc_new (item->canvas->layout.bin_window);
@@ -912,9 +892,6 @@ gantt_row_unrealize (GnomeCanvasItem *item)
        g_object_unref (row->priv->complete_gc);
        row->priv->complete_gc = NULL;
 
-       g_object_unref (row->priv->break_gc);
-       row->priv->break_gc = NULL;
-
        g_object_unref (row->priv->fill_gc);
        row->priv->fill_gc = NULL;
 
@@ -924,10 +901,6 @@ gantt_row_unrealize (GnomeCanvasItem *item)
        g_object_unref (row->priv->ttask_gc);
        row->priv->ttask_gc = NULL;
 
-       if (break_stipple) {
-               g_object_unref (break_stipple);
-       }
-
        if (complete_stipple) {
                g_object_unref (complete_stipple);
        }


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