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:
Benjamin Otte 2014-04-30 09:15:24 +02:00
parent 9ee00c3522
commit f72b496a45

View File

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