]> Pileus Git - ~andy/gtk/commitdiff
GtkThemingEngine: remove unused code
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 17 Nov 2010 01:59:19 +0000 (02:59 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:39:13 +0000 (15:39 +0100)
gtk/gtkthemingengine.c

index 135f4cd9a4ac44216373afe59a5a57cfdd7309e6..55cb6bc0e05eeb2379ae86169aefabf8e9c9e96a 100644 (file)
@@ -1159,70 +1159,6 @@ add_path_line (cairo_t        *cr,
   cairo_line_to (cr, x2, y2);
 }
 
-static void
-add_path_rectangle_sides (cairo_t  *cr,
-                          gdouble   x,
-                          gdouble   y,
-                          gdouble   width,
-                          gdouble   height,
-                          guint     sides)
-{
-  if (sides & SIDE_TOP)
-    {
-      cairo_move_to (cr, x, y + 0.5);
-      cairo_line_to (cr, x + width, y + 0.5);
-    }
-
-  if (sides & SIDE_RIGHT)
-    {
-      cairo_move_to (cr, x + width - 0.5, y);
-      cairo_line_to (cr, x + width - 0.5, y + height);
-    }
-
-  if (sides & SIDE_BOTTOM)
-    {
-      cairo_move_to (cr, x, y + height - 0.5);
-      cairo_line_to (cr, x + width, y + height - 0.5);
-    }
-
-  if (sides & SIDE_LEFT)
-    {
-      cairo_move_to (cr, x + 0.5, y + height);
-      cairo_line_to (cr, x + 0.5, y);
-    }
-}
-
-static void
-add_path_gap_side (cairo_t           *cr,
-                   GtkPositionType    gap_side,
-                   gdouble            x,
-                   gdouble            y,
-                   gdouble            width,
-                   gdouble            height,
-                   gdouble            xy0_gap,
-                   gdouble            xy1_gap)
-{
-  switch (gap_side)
-    {
-    case GTK_POS_TOP:
-      add_path_line (cr, x, y, x + xy0_gap, y);
-      add_path_line (cr, x + xy1_gap, y, x + width, y);
-      break;
-    case GTK_POS_BOTTOM:
-      add_path_line (cr, x, y + height, x + xy0_gap, y + height);
-      add_path_line (cr, x + xy1_gap, y + height, x + width, y + height);
-      break;
-    case GTK_POS_LEFT:
-      add_path_line (cr, x, y, x, y + xy0_gap);
-      add_path_line (cr, x, y + xy1_gap, x, y + height);
-      break;
-    case GTK_POS_RIGHT:
-      add_path_line (cr, x + width, y, x + width, y + xy0_gap);
-      add_path_line (cr, x + width, y + xy1_gap, x + width, y + height);
-      break;
-    }
-}
-
 static void
 color_shade (const GdkRGBA *color,
              gdouble        factor,