forked from AuroraMiddleware/gtk
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:
parent
79de641e9b
commit
70aeeab355
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user