mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 07:30:09 +00:00
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:
parent
43e470dad1
commit
db791ba3f5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user