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/gtkrange.c | |
parent | b613a74cb20a480f9d95579243278660af300cee (diff) | |
download | gdk-pixbuf-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/gtkrange.c')
-rw-r--r-- | gtk/gtkrange.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index c4038c4e8..6e63141ea 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -397,7 +397,6 @@ gtk_range_init (GtkRange *range) GtkAdjustment* gtk_range_get_adjustment (GtkRange *range) { - g_return_val_if_fail (range != NULL, NULL); g_return_val_if_fail (GTK_IS_RANGE (range), NULL); if (!range->adjustment) @@ -425,7 +424,6 @@ void gtk_range_set_update_policy (GtkRange *range, GtkUpdateType policy) { - g_return_if_fail (range != NULL); g_return_if_fail (GTK_IS_RANGE (range)); if (range->update_policy != policy) @@ -469,7 +467,6 @@ void gtk_range_set_adjustment (GtkRange *range, GtkAdjustment *adjustment) { - g_return_if_fail (range != NULL); g_return_if_fail (GTK_IS_RANGE (range)); if (!adjustment) @@ -772,7 +769,6 @@ gtk_range_unrealize (GtkWidget *widget) { GtkRange *range; - g_return_if_fail (widget != NULL); g_return_if_fail (GTK_IS_RANGE (widget)); range = GTK_RANGE (widget); @@ -832,7 +828,6 @@ gtk_range_expose (GtkWidget *widget, GtkStateType state; GdkRectangle area; - g_return_val_if_fail (widget != NULL, FALSE); g_return_val_if_fail (GTK_IS_RANGE (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); @@ -1409,7 +1404,6 @@ gtk_range_style_set (GtkWidget *widget, { GtkRange *range; - g_return_if_fail (widget != NULL); g_return_if_fail (GTK_IS_RANGE (widget)); range = GTK_RANGE (widget); |