From 70aeeab3558b7d929cf7f9c53a9d6ba60e3364a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 28 Apr 2017 11:25:21 +0200 Subject: [PATCH] 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. --- gtk/gtkgrid.c | 7 ++----- 1 file 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;