summaryrefslogtreecommitdiff
path: root/gtk/gtkvruler.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-07-18 23:39:26 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-07-18 23:39:26 +0000
commit4e2b60ac4d32c5bef5b192a12a59f8c2a3124f81 (patch)
tree63b0cecda2350e250c3a1de4a53f43befab1b076 /gtk/gtkvruler.c
parentb613a74cb20a480f9d95579243278660af300cee (diff)
downloadgtk+-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/gtkvruler.c')
-rw-r--r--gtk/gtkvruler.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gtk/gtkvruler.c b/gtk/gtkvruler.c
index 4635340e3a..f3fa8b75a3 100644
--- a/gtk/gtkvruler.c
+++ b/gtk/gtkvruler.c
@@ -110,7 +110,6 @@ gtk_vruler_motion_notify (GtkWidget *widget,
GtkRuler *ruler;
gint y;
- g_return_val_if_fail (widget != NULL, FALSE);
g_return_val_if_fail (GTK_IS_VRULER (widget), FALSE);
g_return_val_if_fail (event != NULL, FALSE);
@@ -154,7 +153,6 @@ gtk_vruler_draw_ticks (GtkRuler *ruler)
PangoLayout *layout;
PangoRectangle logical_rect, ink_rect;
- g_return_if_fail (ruler != NULL);
g_return_if_fail (GTK_IS_VRULER (ruler));
if (!GTK_WIDGET_DRAWABLE (ruler))
@@ -291,7 +289,6 @@ gtk_vruler_draw_pos (GtkRuler *ruler)
gint ythickness;
gdouble increment;
- g_return_if_fail (ruler != NULL);
g_return_if_fail (GTK_IS_VRULER (ruler));
if (GTK_WIDGET_DRAWABLE (ruler))