[mutter/wip/cairo: 3/11] theme: Consolidate unused ops



commit e960234019e2aecb7c21492d5189dc545bf5dcb8
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Oct 28 21:26:23 2011 -0400

    theme: Consolidate unused ops
    
    https://bugzilla.gnome.org/show_bug.cgi?id=662962

 src/ui/theme.c |   33 ++++++++-------------------------
 1 files changed, 8 insertions(+), 25 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index e925031..5602e23 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -3406,18 +3406,6 @@ draw_op_as_pixbuf (const MetaDrawOp    *op,
 
   switch (op->type)
     {
-    case META_DRAW_LINE:
-      break;
-
-    case META_DRAW_RECTANGLE:
-      break;
-
-    case META_DRAW_ARC:
-      break;
-
-    case META_DRAW_CLIP:
-      break;
-      
     case META_DRAW_TINT:
       {
         GdkRGBA color;
@@ -3454,9 +3442,6 @@ draw_op_as_pixbuf (const MetaDrawOp    *op,
       }
       break;
 
-    case META_DRAW_GRADIENT:
-      break;
-
     case META_DRAW_IMAGE:
       {
 	if (op->data.image.colorize_spec)
@@ -3499,12 +3484,6 @@ draw_op_as_pixbuf (const MetaDrawOp    *op,
 	  }
         break;
       }
-      
-    case META_DRAW_GTK_ARROW:
-    case META_DRAW_GTK_BOX:
-    case META_DRAW_GTK_VLINE:
-      break;
-
     case META_DRAW_ICON:
       if (info->mini_icon &&
           width <= gdk_pixbuf_get_width (info->mini_icon) &&
@@ -3520,12 +3499,16 @@ draw_op_as_pixbuf (const MetaDrawOp    *op,
                                          FALSE, FALSE);
       break;
 
+    case META_DRAW_LINE:
+    case META_DRAW_RECTANGLE:
+    case META_DRAW_ARC:
+    case META_DRAW_CLIP:
+    case META_DRAW_GRADIENT:
+    case META_DRAW_GTK_ARROW:
+    case META_DRAW_GTK_BOX:
+    case META_DRAW_GTK_VLINE:
     case META_DRAW_TITLE:
-      break;
-
     case META_DRAW_OP_LIST:
-      break;
-
     case META_DRAW_TILE:
       break;
     }



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