summaryrefslogtreecommitdiff
path: root/gtk/gtkbin.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/gtkbin.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/gtkbin.c')
-rw-r--r--gtk/gtkbin.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gtk/gtkbin.c b/gtk/gtkbin.c
index bd18758ffa..d6a21eb9b9 100644
--- a/gtk/gtkbin.c
+++ b/gtk/gtkbin.c
@@ -115,7 +115,6 @@ gtk_bin_map (GtkWidget *widget)
{
GtkBin *bin;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_BIN (widget));
GTK_WIDGET_SET_FLAGS (widget, GTK_MAPPED);
@@ -135,7 +134,6 @@ gtk_bin_unmap (GtkWidget *widget)
{
GtkBin *bin;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_BIN (widget));
GTK_WIDGET_UNSET_FLAGS (widget, GTK_MAPPED);
@@ -154,9 +152,7 @@ gtk_bin_add (GtkContainer *container,
{
GtkBin *bin;
- g_return_if_fail (container != NULL);
g_return_if_fail (GTK_IS_BIN (container));
- g_return_if_fail (child != NULL);
g_return_if_fail (GTK_IS_WIDGET (child));
bin = GTK_BIN (container);
@@ -195,9 +191,7 @@ gtk_bin_remove (GtkContainer *container,
GtkBin *bin;
gboolean widget_was_visible;
- g_return_if_fail (container != NULL);
g_return_if_fail (GTK_IS_BIN (container));
- g_return_if_fail (child != NULL);
g_return_if_fail (GTK_IS_WIDGET (child));
bin = GTK_BIN (container);
@@ -223,7 +217,6 @@ gtk_bin_forall (GtkContainer *container,
{
GtkBin *bin;
- g_return_if_fail (container != NULL);
g_return_if_fail (GTK_IS_BIN (container));
g_return_if_fail (callback != NULL);