[tracker] libtracker-data: Remove TrackerDBManager locking functions
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Remove TrackerDBManager locking functions
- Date: Sun, 20 Nov 2016 16:08:07 +0000 (UTC)
commit 648b6603347352e26fed403504667caf2d7fd440
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Nov 5 21:25:09 2016 +0100
libtracker-data: Remove TrackerDBManager locking functions
The TrackerDBManager mutex is used nowhere now, it's safe to
remove.
src/libtracker-data/tracker-db-manager.c | 21 ---------------------
src/libtracker-data/tracker-db-manager.h | 4 ----
2 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index be0f2d4..30e89cf 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -163,9 +163,6 @@ static guint u_cache_size;
static GPrivate interface_data_key = G_PRIVATE_INIT ((GDestroyNotify)g_object_unref);
-/* mutex used by singleton connection in libtracker-direct, not used by tracker-store */
-static GMutex global_mutex;
-
static TrackerDBInterface *global_iface;
/* mutex protecting DB manager initialization/shutdown */
@@ -1772,24 +1769,6 @@ tracker_db_manager_set_need_mtime_check (gboolean needed)
g_free (filename);
}
-void
-tracker_db_manager_lock (void)
-{
- g_mutex_lock (&global_mutex);
-}
-
-gboolean
-tracker_db_manager_trylock (void)
-{
- return g_mutex_trylock (&global_mutex);
-}
-
-void
-tracker_db_manager_unlock (void)
-{
- g_mutex_unlock (&global_mutex);
-}
-
inline static gchar *
get_parser_sha1_filename (void)
{
diff --git a/src/libtracker-data/tracker-db-manager.h b/src/libtracker-data/tracker-db-manager.h
index de0a48e..86af426 100644
--- a/src/libtracker-data/tracker-db-manager.h
+++ b/src/libtracker-data/tracker-db-manager.h
@@ -72,10 +72,6 @@ gboolean tracker_db_manager_has_enough_space (void);
void tracker_db_manager_create_version_file (void);
void tracker_db_manager_remove_version_file (void);
-void tracker_db_manager_lock (void);
-gboolean tracker_db_manager_trylock (void);
-void tracker_db_manager_unlock (void);
-
TrackerDBManagerFlags
tracker_db_manager_get_flags (guint *select_cache_size,
guint *update_cache_size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]