summaryrefslogtreecommitdiff
path: root/gtk/gtkgrid.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-04-28 11:25:21 +0200
committerTimm Bäder <mail@baedert.org>2017-04-28 11:27:09 +0200
commit70aeeab3558b7d929cf7f9c53a9d6ba60e3364a2 (patch)
tree35f9b09592905aff67dfdf96c6564a8f18d10300 /gtk/gtkgrid.c
parent79de641e9b105c782ea320fd2ed912dd6819dffb (diff)
downloadgtk+-70aeeab3558b7d929cf7f9c53a9d6ba60e3364a2.tar.gz
grid: Remove unnecessary NULL checks
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.
Diffstat (limited to 'gtk/gtkgrid.c')
-rw-r--r--gtk/gtkgrid.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkgrid.c b/gtk/gtkgrid.c
index 66899650e6..7079991081 100644
--- a/gtk/gtkgrid.c
+++ b/gtk/gtkgrid.c
@@ -1470,11 +1470,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;