From 4e2b60ac4d32c5bef5b192a12a59f8c2a3124f81 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Wed, 18 Jul 2001 23:39:26 +0000 Subject: Patch from Matthias Clasen to remove remove all instances of Wed Jul 18 19:28:46 2001 Owen Taylor * 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. --- gtk/gtkradiobutton.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gtk/gtkradiobutton.c') diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index fb9e6297d6..e41f04233f 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -160,7 +160,6 @@ void gtk_radio_button_set_group (GtkRadioButton *radio_button, GSList *group) { - g_return_if_fail (radio_button != NULL); g_return_if_fail (GTK_IS_RADIO_BUTTON (radio_button)); g_return_if_fail (!g_slist_find (group, radio_button)); @@ -302,7 +301,6 @@ gtk_radio_button_new_with_mnemonic_from_widget (GtkRadioButton *group, GSList* gtk_radio_button_get_group (GtkRadioButton *radio_button) { - g_return_val_if_fail (radio_button != NULL, NULL); g_return_val_if_fail (GTK_IS_RADIO_BUTTON (radio_button), NULL); return radio_button->group; @@ -316,7 +314,6 @@ gtk_radio_button_destroy (GtkObject *object) GtkRadioButton *tmp_button; GSList *tmp_list; - g_return_if_fail (object != NULL); g_return_if_fail (GTK_IS_RADIO_BUTTON (object)); radio_button = GTK_RADIO_BUTTON (object); @@ -346,7 +343,6 @@ gtk_radio_button_clicked (GtkButton *button) GSList *tmp_list; gint toggled; - g_return_if_fail (button != NULL); g_return_if_fail (GTK_IS_RADIO_BUTTON (button)); radio_button = GTK_RADIO_BUTTON (button); @@ -428,7 +424,6 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button, gint x, y; gint indicator_size, indicator_spacing; - g_return_if_fail (check_button != NULL); g_return_if_fail (GTK_IS_RADIO_BUTTON (check_button)); if (GTK_WIDGET_VISIBLE (check_button) && GTK_WIDGET_MAPPED (check_button)) -- cgit v1.2.1