[tracker] TrackerDecorator: Remove unused argument in element_remove_link()



commit f804134f2ec499e919fcfb714e2c6ae702e1939e
Author: Xavier Claessens <xavier claessens collabora co uk>
Date:   Fri Feb 7 14:15:15 2014 -0500

    TrackerDecorator: Remove unused argument in element_remove_link()

 src/libtracker-miner/tracker-decorator.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-decorator.c b/src/libtracker-miner/tracker-decorator.c
index 7401e8a..6b1c113 100644
--- a/src/libtracker-miner/tracker-decorator.c
+++ b/src/libtracker-miner/tracker-decorator.c
@@ -223,8 +223,7 @@ element_add (TrackerDecorator *decorator,
 
 static void
 element_remove_link (TrackerDecorator *decorator,
-                     GList            *elem_link,
-                     gboolean          emit)
+                     GList            *elem_link)
 {
        TrackerDecoratorPrivate *priv;
        ElemNode *node;
@@ -243,7 +242,7 @@ element_remove_link (TrackerDecorator *decorator,
        g_queue_delete_link (priv->elem_queue, elem_link);
        g_hash_table_remove (priv->elems, GINT_TO_POINTER (node->id));
 
-       if (emit && g_hash_table_size (priv->elems) == 0) {
+       if (g_hash_table_size (priv->elems) == 0) {
                g_signal_emit (decorator, signals[FINISHED], 0);
                decorator_update_state (decorator, "Idle", FALSE);
                priv->stats_n_elems = 0;
@@ -268,7 +267,7 @@ element_remove_by_id (TrackerDecorator *decorator,
        if (!elem_link)
                return;
 
-       element_remove_link (decorator, elem_link, TRUE);
+       element_remove_link (decorator, elem_link);
 }
 
 static void


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