[tracker/miner-fs-refactor: 70/93] libtracker-miner: Remove indexing tree signal handlers in TrackerMinerFS
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-fs-refactor: 70/93] libtracker-miner: Remove indexing tree signal handlers in TrackerMinerFS
- Date: Fri, 7 Oct 2011 11:23:13 +0000 (UTC)
commit f202eed0fd44871ac42bc3778d648056e533a4c5
Author: Carlos Garnacho <carlos lanedo com>
Date: Tue Oct 4 11:35:11 2011 +0200
libtracker-miner: Remove indexing tree signal handlers in TrackerMinerFS
tracker_miner_fs_directory_add*() is meant to use TrackerIndexingTree
underneath, so don't do it the other way around too.
src/libtracker-miner/tracker-miner-fs.c | 31 -------------------------------
1 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 300e690..4ce7a1b 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -620,31 +620,6 @@ tracker_miner_fs_class_init (TrackerMinerFSClass *klass)
}
static void
-indexing_tree_directory_added_cb (TrackerIndexingTree *tree,
- GFile *directory,
- gpointer user_data)
-{
- TrackerMinerFS *fs = user_data;
- TrackerDirectoryFlags dir_flags;
- gboolean recurse;
-
- tracker_indexing_tree_get_root (tree, directory, &dir_flags);
- recurse = (dir_flags & TRACKER_DIRECTORY_FLAG_RECURSE) != 0;
-
- tracker_miner_fs_directory_add (fs, directory, recurse);
-}
-
-static void
-indexing_tree_directory_removed_cb (TrackerIndexingTree *tree,
- GFile *directory,
- gpointer user_data)
-{
- TrackerMinerFS *fs = user_data;
-
- tracker_miner_fs_directory_remove (fs, directory);
-}
-
-static void
tracker_miner_fs_init (TrackerMinerFS *object)
{
TrackerMinerFSPrivate *priv;
@@ -675,12 +650,6 @@ tracker_miner_fs_init (TrackerMinerFS *object)
/* Create the indexing tree */
priv->indexing_tree = tracker_indexing_tree_new ();
- g_signal_connect (priv->indexing_tree, "directory-added",
- G_CALLBACK (indexing_tree_directory_added_cb),
- object);
- g_signal_connect (priv->indexing_tree, "directory-removed",
- G_CALLBACK (indexing_tree_directory_removed_cb),
- object);
/* Create the file notifier */
priv->file_notifier = tracker_file_notifier_new (priv->indexing_tree);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]