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,10 +365,7 @@ gtk_switch_get_preferred_width (GtkWidget *widget,
g_object_unref (layout); g_object_unref (layout);
if (minimum)
*minimum = width; *minimum = width;
if (natural)
*natural = width; *natural = width;
} }
@ -417,10 +414,7 @@ gtk_switch_get_preferred_height (GtkWidget *widget,
g_object_unref (layout); g_object_unref (layout);
g_free (str); g_free (str);
if (minimum)
*minimum = height; *minimum = height;
if (natural)
*natural = height; *natural = height;
} }