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



commit 42ab69edbf26b52e6d97b25f6d1cbc2ca6dccea9
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 51526ab..330ca90 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -986,10 +986,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]