switch: 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:11:58 +02:00
parent c3dd043765
commit ddbd71e22a

View File

@ -365,11 +365,8 @@ gtk_switch_get_preferred_width (GtkWidget *widget,
g_object_unref (layout);
if (minimum)
*minimum = width;
if (natural)
*natural = width;
*minimum = width;
*natural = width;
}
static void
@ -417,11 +414,8 @@ gtk_switch_get_preferred_height (GtkWidget *widget,
g_object_unref (layout);
g_free (str);
if (minimum)
*minimum = height;
if (natural)
*natural = height;
*minimum = height;
*natural = height;
}
static void