grid: Remove unnecessary NULL checks
authorTimm Bäder <mail@baedert.org>
Fri, 28 Apr 2017 09:25:21 +0000 (11:25 +0200)
committerDaniel Boles <dboles.src@gmail.com>
Mon, 22 May 2017 13:23:14 +0000 (14:23 +0100)
The minimum and natural pointers passed to measure are never NULL and
that's the only place where we call gtk_grid_get_size_for_size.

gtk/gtkgrid.c

index 04896fa915e3e3272bccd4e5fe4249c6411d76a0..b2975554a434d986ff3b2db8d1697c186e4810d6 100644 (file)
@@ -1455,11 +1455,8 @@ gtk_grid_get_size_for_size (GtkGrid        *grid,
   GtkGridLines *lines;
   gint min_size, nat_size;
 
-  if (minimum)
-    *minimum = 0;
-
-  if (natural)
-    *natural = 0;
+  *minimum = 0;
+  *natural = 0;
 
   if (minimum_baseline)
     *minimum_baseline = -1;