widget: 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 08:42:52 +02:00
parent 43e470dad1
commit db791ba3f5

View File

@ -13904,11 +13904,8 @@ gtk_widget_real_get_width (GtkWidget *widget,
gint *minimum_size,
gint *natural_size)
{
if (minimum_size)
*minimum_size = 0;
if (natural_size)
*natural_size = 0;
*minimum_size = 0;
*natural_size = 0;
}
static void
@ -13916,11 +13913,8 @@ gtk_widget_real_get_height (GtkWidget *widget,
gint *minimum_size,
gint *natural_size)
{
if (minimum_size)
*minimum_size = 0;
if (natural_size)
*natural_size = 0;
*minimum_size = 0;
*natural_size = 0;
}
static void