From 32e61b955acfa544ef7b4b6c47eb73653306bd05 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 5 Feb 2019 07:54:35 -0500 Subject: [PATCH] Drop gtkboxprivate.h Not needed anymore. --- docs/reference/gtk/meson.build | 1 - gtk/gtkbox.c | 17 ----------------- gtk/gtkboxprivate.h | 30 ------------------------------ gtk/gtkdialog.c | 1 - 4 files changed, 49 deletions(-) delete mode 100644 gtk/gtkboxprivate.h diff --git a/docs/reference/gtk/meson.build b/docs/reference/gtk/meson.build index 12147fa674..75eb45be35 100644 --- a/docs/reference/gtk/meson.build +++ b/docs/reference/gtk/meson.build @@ -11,7 +11,6 @@ private_headers = [ 'gtkapplicationprivate.h', 'gtkbindingsprivate.h', 'gtkbitmaskprivate.h', - 'gtkboxprivate.h', 'gtkbuilderprivate.h', 'gtkbuttonprivate.h', 'gtkcellareaboxcontextprivate.h', diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index 2e952a5af0..307276c63f 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -57,7 +57,6 @@ #include "config.h" #include "gtkbox.h" -#include "gtkboxprivate.h" #include "gtkcsspositionvalueprivate.h" #include "gtkintl.h" #include "gtkorientable.h" @@ -1081,22 +1080,6 @@ gtk_box_forall (GtkContainer *container, } -GList * -_gtk_box_get_children (GtkBox *box) -{ - GtkWidget *p; - GList *retval = NULL; - - g_return_val_if_fail (GTK_IS_BOX (box), NULL); - - for (p = _gtk_widget_get_first_child (GTK_WIDGET (box)); - p != NULL; - p = _gtk_widget_get_next_sibling (p)) - retval = g_list_prepend (retval, p); - - return g_list_reverse (retval); -} - /** * gtk_box_insert_child_after: * @box: a #GtkBox diff --git a/gtk/gtkboxprivate.h b/gtk/gtkboxprivate.h deleted file mode 100644 index 9d08da61b9..0000000000 --- a/gtk/gtkboxprivate.h +++ /dev/null @@ -1,30 +0,0 @@ -/* GTK - The GIMP Toolkit - * - * Copyright (C) 2011 Javier Jardón - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -#ifndef __GTK_BOX_PRIVATE_H__ -#define __GTK_BOX_PRIVATE_H__ - -#include "gtkbox.h" - -G_BEGIN_DECLS - -GList *_gtk_box_get_children (GtkBox *box); - -G_END_DECLS - -#endif /* __GTK_BOX_PRIVATE_H__ */ diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index b183f37718..db6cbac56e 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -34,7 +34,6 @@ #include "gtklabel.h" #include "gtkmarshalers.h" #include "gtkbox.h" -#include "gtkboxprivate.h" #include "gtkcontainerprivate.h" #include "gtkmain.h" #include "gtkintl.h"