[telepathy-gabble/master] util.c: implement lm_message_node_steal_children using Wocky API

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Sep 11 07:56:14 PDT 2009


WockyXmppNode doesn't have a parent attribute so all we have to do is to
set its children list.
---
 src/util.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/util.c b/src/util.c
index 837391a..17cab3c 100644
--- a/src/util.c
+++ b/src/util.c
@@ -139,8 +139,6 @@ void
 lm_message_node_steal_children (LmMessageNode *snatcher,
                                 LmMessageNode *mum)
 {
-  NodeIter i;
-
   g_return_if_fail (snatcher->children == NULL);
 
   if (mum->children == NULL)
@@ -148,12 +146,6 @@ lm_message_node_steal_children (LmMessageNode *snatcher,
 
   snatcher->children = mum->children;
   mum->children = NULL;
-
-  for (i = node_iter (snatcher); i; i = node_iter_next (i))
-    {
-      LmMessageNode *baby = node_iter_data (i);
-      baby->parent = snatcher;
-    }
 }
 
 /* variant of lm_message_node_get_child() which ignores node namespace
-- 
1.5.6.5




More information about the telepathy-commits mailing list