[tracker] tracker-miner-fs: Removed unused tracker_storage_new() call
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-miner-fs: Removed unused tracker_storage_new() call
- Date: Mon, 23 Nov 2009 04:52:34 +0000 (UTC)
commit 670cb4430878827969d5b49749fc06e2fd0d8ff6
Author: Martyn Russell <martyn lanedo com>
Date: Mon Nov 23 04:31:50 2009 +0000
tracker-miner-fs: Removed unused tracker_storage_new() call
This was resulting in us listing and iterating all HAL devices twice
each time miner-fs was started
src/tracker-miner-fs/tracker-main.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/tracker-miner-fs/tracker-main.c b/src/tracker-miner-fs/tracker-main.c
index 35bb2b3..5edee5a 100644
--- a/src/tracker-miner-fs/tracker-main.c
+++ b/src/tracker-miner-fs/tracker-main.c
@@ -39,7 +39,6 @@
#include <libtracker-common/tracker-log.h>
#include <libtracker-common/tracker-ontology.h>
#include <libtracker-common/tracker-file-utils.h>
-#include <libtracker-common/tracker-storage.h>
#include <libtracker-db/tracker-db-manager.h>
#include <libtracker-db/tracker-db-dbus.h>
@@ -230,7 +229,6 @@ main (gint argc, gchar *argv[])
{
TrackerConfig *config;
TrackerMiner *miner_applications, *miner_files;
- TrackerStorage *storage;
GOptionContext *context;
GError *error = NULL;
gchar *log_filename = NULL;
@@ -313,12 +311,6 @@ main (gint argc, gchar *argv[])
str ? str : "no error given");
}
-#ifdef HAVE_HAL
- storage = tracker_storage_new ();
-#else
- storage = NULL;
-#endif
-
tracker_thumbnailer_init ();
/* Create miner for applications */
@@ -347,10 +339,6 @@ main (gint argc, gchar *argv[])
g_main_loop_unref (main_loop);
g_object_unref (config);
- if (storage) {
- g_object_unref (storage);
- }
-
g_slist_foreach (miners, (GFunc) g_object_unref, NULL);
g_slist_free (miners);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]