gegl r2867 - in trunk: . gegl/graph
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2867 - in trunk: . gegl/graph
- Date: Tue, 13 Jan 2009 21:35:54 +0000 (UTC)
Author: ok
Date: Tue Jan 13 21:35:54 2009
New Revision: 2867
URL: http://svn.gnome.org/viewvc/gegl?rev=2867&view=rev
Log:
* gegl/graph/gegl-node.[ch]: removed gegl_node_adopt_child()
Modified:
trunk/ChangeLog
trunk/gegl/graph/gegl-node.c
trunk/gegl/graph/gegl-node.h
Modified: trunk/gegl/graph/gegl-node.c
==============================================================================
--- trunk/gegl/graph/gegl-node.c (original)
+++ trunk/gegl/graph/gegl-node.c Tue Jan 13 21:35:54 2009
@@ -1957,33 +1957,6 @@
return self_priv->parent;
}
-GeglNode *
-gegl_node_adopt_child (GeglNode *self,
- GeglNode *child)
-{
- GeglNode *old_parent;
-
- g_return_val_if_fail (GEGL_IS_NODE (child), NULL);
- g_object_ref (child);
- old_parent = gegl_node_get_parent (child);
- if (old_parent)
- {
- gegl_node_remove_child (old_parent, child);
- }
-
- if (self)
- {
- gegl_node_add_child (self, child);
- }
- else
- {
- g_object_ref (child);
- }
-
- g_object_unref (child);
- return child;
-}
-
gint
gegl_node_get_num_children (GeglNode *self)
{
Modified: trunk/gegl/graph/gegl-node.h
==============================================================================
--- trunk/gegl/graph/gegl-node.h (original)
+++ trunk/gegl/graph/gegl-node.h Tue Jan 13 21:35:54 2009
@@ -128,8 +128,6 @@
GeglNode * gegl_node_get_parent (GeglNode *self);
-GeglNode * gegl_node_adopt_child (GeglNode *self,
- GeglNode *child);
/* functions below are internal to gegl */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]