[tracker/tracker-store-batch] tracker-indexer: Remove redundant query in item_remove
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker/tracker-store-batch] tracker-indexer: Remove redundant query in item_remove
- Date: Thu, 14 May 2009 09:34:36 -0400 (EDT)
commit e15ce63c09926c1b9902fa5811542c35836fe3e4
Author: Jürg Billeter <j bitron ch>
Date: Thu May 14 15:31:25 2009 +0200
tracker-indexer: Remove redundant query in item_remove
---
src/tracker-indexer/tracker-indexer.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/src/tracker-indexer/tracker-indexer.c b/src/tracker-indexer/tracker-indexer.c
index d267e70..d3cb9c4 100644
--- a/src/tracker-indexer/tracker-indexer.c
+++ b/src/tracker-indexer/tracker-indexer.c
@@ -1241,7 +1241,6 @@ item_remove (TrackerIndexer *indexer,
const gchar *uri)
{
gchar *mount_point = NULL;
- const gchar *service_type;
gchar *mime_type;
guint service_id;
gchar *sparql;
@@ -1253,18 +1252,6 @@ item_remove (TrackerIndexer *indexer,
start_transaction (indexer);
}
- service_type = tracker_module_config_get_index_service (info->module->name);
-
- if (!service_type || !service_type[0]) {
- /* The file is not anymore in the filesystem. Obtain
- * the service type from the DB.
- */
- if (!tracker_data_query_resource_exists (uri, NULL)) {
- /* File didn't exist, nothing to delete */
- return;
- }
- }
-
tracker_data_query_resource_exists (uri, &service_id);
if (service_id < 1) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]