[tracker/miner-priority-queues: 4/22] tracker-miner-fs: remove duplicated code



commit b211f6ba278d9510559238521182ef0b28546e39
Author: Carlos Garnacho <carlos lanedo com>
Date:   Wed Jun 29 16:13:08 2011 +0200

    tracker-miner-fs: remove duplicated code
    
    tracker_miner_fs_has_items_to_process() may just be called there

 src/libtracker-miner/tracker-miner-fs.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 261f81c..df4ce88 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -988,10 +988,7 @@ miner_resumed (TrackerMiner *miner)
 	/* Only set up queue handler if we have items waiting to be
 	 * processed.
 	 */
-	if (g_queue_get_length (fs->priv->items_deleted) > 0 ||
-	    g_queue_get_length (fs->priv->items_created) > 0 ||
-	    g_queue_get_length (fs->priv->items_updated) > 0 ||
-	    g_queue_get_length (fs->priv->items_moved) > 0) {
+	if (tracker_miner_fs_has_items_to_process (fs)) {
 		item_queue_handlers_set_up (fs);
 	}
 }



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