diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-07-18 23:39:26 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-07-18 23:39:26 +0000 |
commit | 4e2b60ac4d32c5bef5b192a12a59f8c2a3124f81 (patch) | |
tree | 63b0cecda2350e250c3a1de4a53f43befab1b076 /gtk/gtkcheckbutton.c | |
parent | b613a74cb20a480f9d95579243278660af300cee (diff) | |
download | gtk+-4e2b60ac4d32c5bef5b192a12a59f8c2a3124f81.tar.gz |
Patch from Matthias Clasen to remove remove all instances of
Wed Jul 18 19:28:46 2001 Owen Taylor <otaylor@redhat.com>
* gtk/*.c: Patch from Matthias Clasen to remove remove
all instances of g_return_if_fail (foo != NULL); that are
immediately before a g_return_if_fail (GTK_IS_FOO (foo));
since the second check catches the NULL anyways.
Diffstat (limited to 'gtk/gtkcheckbutton.c')
-rw-r--r-- | gtk/gtkcheckbutton.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c index 9c535d9576..67f3e4a15f 100644 --- a/gtk/gtkcheckbutton.c +++ b/gtk/gtkcheckbutton.c @@ -230,7 +230,6 @@ gtk_check_button_size_request (GtkWidget *widget, { GtkToggleButton *toggle_button; - g_return_if_fail (widget != NULL); g_return_if_fail (GTK_IS_CHECK_BUTTON (widget)); g_return_if_fail (requisition != NULL); @@ -279,7 +278,6 @@ gtk_check_button_size_allocate (GtkWidget *widget, GtkButton *button; GtkAllocation child_allocation; - g_return_if_fail (widget != NULL); g_return_if_fail (GTK_IS_CHECK_BUTTON (widget)); g_return_if_fail (allocation != NULL); @@ -365,7 +363,6 @@ gtk_check_button_draw_indicator (GtkCheckButton *check_button, { GtkCheckButtonClass *class; - g_return_if_fail (check_button != NULL); g_return_if_fail (GTK_IS_CHECK_BUTTON (check_button)); class = GTK_CHECK_BUTTON_GET_CLASS (check_button); @@ -390,7 +387,6 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button, gint indicator_spacing; GdkWindow *window; - g_return_if_fail (check_button != NULL); g_return_if_fail (GTK_IS_CHECK_BUTTON (check_button)); widget = GTK_WIDGET (check_button); |