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



commit b208fcfcb6745bb536e3c035a9a498a4246b4ea7
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 473df87..5ea1de9 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]