[tracker/wip/miner-priority-queues: 4/19] tracker-miner-fs: remove duplicated code
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/miner-priority-queues: 4/19] tracker-miner-fs: remove duplicated code
- Date: Thu, 7 Jul 2011 10:25:55 +0000 (UTC)
commit b1b6c821f3a4acb7831e36aeb43e709348fd44a6
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]