viewport: 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:09:39 +02:00
parent 29a4f0131e
commit 9652b8cf82

View File

@@ -1084,11 +1084,8 @@ gtk_viewport_get_preferred_size (GtkWidget *widget,
natural += child_nat;
}
if (minimum_size)
*minimum_size = minimum;
if (natural_size)
*natural_size = natural;
*minimum_size = minimum;
*natural_size = natural;
}
static void