Commit f72b496a authored by Benjamin Otte's avatar Benjamin Otte

grid: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.
parent 9ee00c35
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment