gtk-engines r1223 - in trunk: . engines/glide/src



Author: bberg
Date: Mon Aug  4 15:40:38 2008
New Revision: 1223
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1223&view=rev

Log:
2008-08-04  Benjamin Berg  <benjamin sipsolutions net>

	* engines/glide/src/glide_gtk2_drawing.c: (glide_draw_option):
	Remove dead code found by coverity (bug #501734, Kjartan Maraas)


Modified:
   trunk/ChangeLog
   trunk/engines/glide/src/glide_gtk2_drawing.c

Modified: trunk/engines/glide/src/glide_gtk2_drawing.c
==============================================================================
--- trunk/engines/glide/src/glide_gtk2_drawing.c	(original)
+++ trunk/engines/glide/src/glide_gtk2_drawing.c	Mon Aug  4 15:40:38 2008
@@ -213,8 +213,6 @@
              gint height)
 {
 	GlideCheckState check_state;
-	gboolean observe_shadow;
-	gboolean draw_check;
 
 	GlideStyle *glide_style;
  
@@ -263,8 +261,6 @@
 	/***********************************************/
 	/* Appearance                                  */
 	/***********************************************/
-	observe_shadow = FALSE;
-	draw_check = !observe_shadow;
 
 
 		/***********************************************/
@@ -281,11 +277,6 @@
 			check_color = &glide_style->color_cube.dark[state];	
 		}
 
-		if (observe_shadow)
-		{
-			fill_color = &glide_style->color_cube.bg[state];
-		}
-
 
 		/***********************************************/
 		/* Style                                       */
@@ -293,43 +284,6 @@
 		bevel_style = GLIDE_BEVEL_STYLE_SMOOTHER;
 		border_type = GLIDE_BORDER_TYPE_IN;
 
-		if (observe_shadow)
-		{
-			/*border_type = glide_gtk_shadow(shadow);*/
-
-			/***********************************************/
-			/* Convert Shadow Type To Border Type          */
-			/***********************************************/
-			switch (shadow)
-			{
-				case GTK_SHADOW_ETCHED_IN:
-					border_type = GLIDE_BORDER_TYPE_ETCHED;
-				break;
-
-				case GTK_SHADOW_ETCHED_OUT:
-					border_type = GLIDE_BORDER_TYPE_ENGRAVED;
-				break;
-
-				case GTK_SHADOW_IN:
-					border_type = GLIDE_BORDER_TYPE_IN;
-				break;
-
-				case GTK_SHADOW_OUT:
-					border_type = GLIDE_BORDER_TYPE_OUT;
-				break;
-
-				default:
-					border_type = GLIDE_BORDER_TYPE_NONE;
-				break;
-			}
-
-			if (!draw_check)
-			{
-				check_state = GLIDE_CHECK_OFF;
-			}
-		}
-
-
 	/***********************************************/
 	/* Draw Option                                 */
 	/***********************************************/



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