[clutter] actor: Remove unused function



commit 254ebd876556e1012947513d2855ab0c7fd83a1c
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Jan 24 09:36:31 2012 +0000

    actor: Remove unused function

 clutter/clutter-actor-private.h |    2 -
 clutter/clutter-actor.c         |   59 +--------------------------------------
 2 files changed, 1 insertions(+), 60 deletions(-)
---
diff --git a/clutter/clutter-actor-private.h b/clutter/clutter-actor-private.h
index 10444ce..968dbef 100644
--- a/clutter/clutter-actor-private.h
+++ b/clutter/clutter-actor-private.h
@@ -215,8 +215,6 @@ void          _clutter_actor_traverse                   (ClutterActor *actor,
                                                          ClutterTraverseCallback before_children_callback,
                                                          ClutterTraverseCallback after_children_callback,
                                                          gpointer user_data);
-void          _clutter_actor_sort_children              (ClutterActor *actor,
-                                                         GCompareFunc  func);
 ClutterActor *_clutter_actor_get_stage_internal         (ClutterActor *actor);
 
 void _clutter_actor_apply_modelview_transform           (ClutterActor *self,
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index cc784ec..c98b8be 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -75,7 +75,7 @@
  *   another child actor. The order of insertion determines the order of the
  *   children when iterating over them. Iterating over children is performed
  *   by using clutter_actor_get_first_child(), clutter_actor_get_previous_sibling(),
- *   clutter_actor_get_next_child(), and clutter_actor_get_last_child(). It is
+ *   clutter_actor_get_next_sibling(), and clutter_actor_get_last_child(). It is
  *   also possible to retrieve a list of children by using
  *   clutter_actor_get_children(), as well as retrieving a specific child at a
  *   given index by using clutter_actor_get_child_at_index().</para>
@@ -15763,60 +15763,3 @@ clutter_actor_get_last_child (ClutterActor *self)
 
   return self->priv->last_child;
 }
-
-/*< private >
- * @self: a #ClutterActor
- * @func: a comparison function
- *
- * Sorts the list of children of @self using the provided comparison
- * function.
- */
-void
-_clutter_actor_sort_children (ClutterActor *self,
-                              GCompareFunc  func)
-{
-  ClutterActor *old_first, *old_last;
-  ClutterActor *iter;
-  GList *tmp, *l;
-
-  old_first = self->priv->first_child;
-  old_last = self->priv->last_child;
-
-  /* build a list from the list of children, while removing them
-   * at the same time; removal is O(1), as well as prepending it
-   * to the temporary list
-   */
-  tmp = NULL;
-  iter = self->priv->first_child;
-  while (iter != NULL)
-    {
-      ClutterActor *next = iter->priv->next_sibling;
-
-      tmp = g_list_prepend (tmp, g_object_ref (iter));
-
-      clutter_actor_remove_child_internal (self, iter, 0);
-
-      iter = next;
-    }
-
-  tmp = g_list_sort (tmp, func);
-
-  for (l = tmp; l != NULL; l = l->next)
-    {
-      clutter_actor_add_child_internal (self, l->data, 0,
-                                        insert_child_above,
-                                        NULL);
-      g_object_unref (l->data);
-    }
-
-  g_list_free (tmp);
-
-  /* we don't notify :first-child and :last-child until the end, to avoid
-   * spurious signal emissions
-   */
-  if (old_first != self->priv->first_child)
-    g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_FIRST_CHILD]);
-
-  if (old_last != self->priv->last_child)
-    g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_LAST_CHILD]);
-}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]