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
parent 79de641e9b
commit 70aeeab355

View File

@ -1470,11 +1470,8 @@ gtk_grid_get_size_for_size (GtkGrid *grid,
GtkGridLines *lines; GtkGridLines *lines;
gint min_size, nat_size; gint min_size, nat_size;
if (minimum) *minimum = 0;
*minimum = 0; *natural = 0;
if (natural)
*natural = 0;
if (minimum_baseline) if (minimum_baseline)
*minimum_baseline = -1; *minimum_baseline = -1;