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.
This commit is contained in:
Timm Bäder
2017-04-28 11:25:21 +02:00
committed by Daniel Boles
parent 7adc38a64c
commit 46decc6182

View 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;