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



commit 4e906a1478edbb1eb898ce0b8a4e53db84dba5e2
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 041b7c0..2d34005 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]