[gtk+] styleproperties: Remove needless check



commit e7db09062025e6e4a75577ee36f5a8e3f277930e
Author: Benjamin Otte <otte redhat com>
Date:   Sat May 21 19:39:46 2011 +0200

    styleproperties: Remove needless check

 gtk/gtkstyleproperties.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c
index f622ca9..0bfd3ae 100644
--- a/gtk/gtkstyleproperties.c
+++ b/gtk/gtkstyleproperties.c
@@ -745,7 +745,7 @@ style_properties_resolve_type (GtkStyleProperties     *props,
                                const GtkStyleProperty *node,
                                GValue                 *val)
 {
-  if (val && G_VALUE_TYPE (val) == GTK_TYPE_SYMBOLIC_COLOR)
+  if (G_VALUE_TYPE (val) == GTK_TYPE_SYMBOLIC_COLOR)
     {
       if (node->pspec->value_type == GDK_TYPE_RGBA)
         {
@@ -760,14 +760,14 @@ style_properties_resolve_type (GtkStyleProperties     *props,
       else
         return FALSE;
     }
-  else if (val && G_VALUE_TYPE (val) == GTK_TYPE_GRADIENT)
+  else if (G_VALUE_TYPE (val) == GTK_TYPE_GRADIENT)
     {
       g_return_val_if_fail (node->pspec->value_type == CAIRO_GOBJECT_TYPE_PATTERN, FALSE);
 
       if (!resolve_gradient (props, val))
         return FALSE;
     }
-  else if (val && G_VALUE_TYPE (val) == GTK_TYPE_SHADOW)
+  else if (G_VALUE_TYPE (val) == GTK_TYPE_SHADOW)
     {
       if (!resolve_shadow (props, val))
         return FALSE;



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