Remove excess calls to g_return_if_fail from static and virtual functions.
This commit is contained in:
@ -101,9 +101,6 @@ gtk_hbox_size_request (GtkWidget *widget,
|
||||
gint nvis_children;
|
||||
gint width;
|
||||
|
||||
g_return_if_fail (GTK_IS_HBOX (widget));
|
||||
g_return_if_fail (requisition != NULL);
|
||||
|
||||
box = GTK_BOX (widget);
|
||||
requisition->width = 0;
|
||||
requisition->height = 0;
|
||||
@ -164,9 +161,6 @@ gtk_hbox_size_allocate (GtkWidget *widget,
|
||||
gint x;
|
||||
GtkTextDirection direction;
|
||||
|
||||
g_return_if_fail (GTK_IS_HBOX (widget));
|
||||
g_return_if_fail (allocation != NULL);
|
||||
|
||||
box = GTK_BOX (widget);
|
||||
widget->allocation = *allocation;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user