mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
grid: Remove unneeded checks
Size vfuncs always get non-null out variables passed, so no need to check for NULL.
This commit is contained in:
parent
9ee00c3522
commit
f72b496a45
@ -1123,11 +1123,8 @@ gtk_grid_request_sum (GtkGridRequest *request,
|
||||
nat -= linedata->spacing;
|
||||
}
|
||||
|
||||
if (minimum)
|
||||
*minimum = min;
|
||||
|
||||
if (natural)
|
||||
*natural = nat;
|
||||
*minimum = min;
|
||||
*natural = nat;
|
||||
}
|
||||
|
||||
/* Computes minimum and natural fields of lines.
|
||||
@ -1428,11 +1425,8 @@ gtk_grid_get_size (GtkGrid *grid,
|
||||
GtkGridRequest request;
|
||||
GtkGridLines *lines;
|
||||
|
||||
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