[tracker/wip/carlosg/tracker-3.0-api-breaks: 100/100] libtracker-data: Remove unused fields from TrackerDBDefinition
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/tracker-3.0-api-breaks: 100/100] libtracker-data: Remove unused fields from TrackerDBDefinition
- Date: Mon, 17 Feb 2020 18:17:13 +0000 (UTC)
commit d8aae14b0edb0810edcd274c1c85384a6fff8df0
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Feb 17 16:52:32 2020 +0100
libtracker-data: Remove unused fields from TrackerDBDefinition
It should eventually disappear entirely, since there's only one of it
ever.
src/libtracker-data/tracker-db-manager.c | 12 ------------
1 file changed, 12 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index 900fac283..56410448f 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -112,9 +112,6 @@ typedef struct {
gchar *abs_filename;
gint cache_size;
gint page_size;
- gboolean attached;
- gboolean is_index;
- guint64 mtime;
} TrackerDBDefinition;
static TrackerDBDefinition db_base = {
@@ -124,9 +121,6 @@ static TrackerDBDefinition db_base = {
NULL,
TRACKER_DB_CACHE_SIZE_DEFAULT,
8192,
- FALSE,
- FALSE,
- 0
};
struct _TrackerDBManager {
@@ -742,8 +736,6 @@ tracker_db_manager_new (TrackerDBManagerFlags flags,
if (!must_recreate) {
gchar *busy_status;
- db_manager->db.mtime = tracker_file_get_mtime (db_manager->db.abs_filename);
-
loaded = TRUE;
/* Report OPERATION - STATUS */
@@ -822,10 +814,6 @@ tracker_db_manager_new (TrackerDBManagerFlags flags,
}
}
- if (!loaded) {
- db_manager->db.mtime = tracker_file_get_mtime (db_manager->db.abs_filename);
- }
-
if ((flags & TRACKER_DB_MANAGER_READONLY) == 0) {
/* do not create in-use file for read-only mode (direct access) */
in_use_file = g_open (db_manager->in_use_filename,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]