[tracker] libtracker-data: Drop unneeded FTS INSERT/DELETE statements
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Drop unneeded FTS INSERT/DELETE statements
- Date: Tue, 29 Sep 2009 15:26:15 +0000 (UTC)
commit 6375613437e7eb216f78b0a49fdc2fe2acdb9e84
Author: Jürg Billeter <j bitron ch>
Date: Tue Sep 29 17:05:33 2009 +0200
libtracker-data: Drop unneeded FTS INSERT/DELETE statements
src/libtracker-data/tracker-data-update.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index d527982..ac15f59 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -297,11 +297,6 @@ ensure_resource_id (const gchar *uri)
tracker_db_statement_execute (stmt, NULL);
g_object_unref (stmt);
- stmt = tracker_db_interface_create_statement (iface, "INSERT INTO \"fts\" (rowid) VALUES (?)");
- tracker_db_statement_bind_int (stmt, 0, id);
- tracker_db_statement_execute (stmt, NULL);
- g_object_unref (stmt);
-
g_hash_table_insert (update_buffer.resource_cache, g_strdup (uri), GUINT_TO_POINTER (id));
}
@@ -1112,13 +1107,6 @@ tracker_data_delete_statement (const gchar *subject,
tracker_db_statement_execute (stmt, NULL);
g_object_unref (stmt);
- if (strcmp (tracker_class_get_name (class), "rdfs:Resource") == 0) {
- stmt = tracker_db_interface_create_statement (iface, "DELETE FROM \"fts\" WHERE rowid = ?");
- tracker_db_statement_bind_int (stmt, 0, subject_id);
- tracker_db_statement_execute (stmt, NULL);
- g_object_unref (stmt);
- }
-
/* delete rows from class tables */
delete_resource_type (subject_id, class);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]