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/gtktreesortable.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'gtk/gtktreesortable.c') diff --git a/gtk/gtktreesortable.c b/gtk/gtktreesortable.c index 14d0e3c66..e187a351e 100644 --- a/gtk/gtktreesortable.c +++ b/gtk/gtktreesortable.c @@ -83,7 +83,6 @@ gtk_tree_sortable_get_sort_column_id (GtkTreeSortable *sortable, { GtkTreeSortableIface *iface; - g_return_val_if_fail (sortable != NULL, FALSE); g_return_val_if_fail (GTK_IS_TREE_SORTABLE (sortable), FALSE); iface = GTK_TREE_SORTABLE_GET_IFACE (sortable); @@ -101,7 +100,6 @@ gtk_tree_sortable_set_sort_column_id (GtkTreeSortable *sortable, { GtkTreeSortableIface *iface; - g_return_if_fail (sortable != NULL); g_return_if_fail (GTK_IS_TREE_SORTABLE (sortable)); iface = GTK_TREE_SORTABLE_GET_IFACE (sortable); @@ -122,7 +120,6 @@ gtk_tree_sortable_set_sort_func (GtkTreeSortable *sortable, { GtkTreeSortableIface *iface; - g_return_if_fail (sortable != NULL); g_return_if_fail (GTK_IS_TREE_SORTABLE (sortable)); iface = GTK_TREE_SORTABLE_GET_IFACE (sortable); -- cgit v1.2.1