[gtk+] button: Remove unneeded checks



commit 3914bc9ce61df97063c9a371eb752e198ff7f214
Author: Benjamin Otte <otte redhat com>
Date:   Wed Apr 30 08:38:39 2014 +0200

    button: Remove unneeded checks
    
    Size vfuncs always get non-null out variables passed, so no need to
    check for NULL.

 gtk/gtkbutton.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index aff698e..c13fd6c 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -2250,11 +2250,8 @@ gtk_button_get_size (GtkWidget      *widget,
       natural += child_nat;
     }
 
-  if (minimum_size)
-    *minimum_size = minimum;
-
-  if (natural_size)
-    *natural_size = natural;
+  *minimum_size = minimum;
+  *natural_size = natural;
 }
 
 static void 


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