[tracker/wip/carlosg/tracker-3.0-api-breaks: 55/100] libtracker-direct: Drop unused internal API



commit 3d5e60310f92bffc65ce82ff45b4de4140049cbc
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Dec 30 19:28:17 2019 +0100

    libtracker-direct: Drop unused internal API
    
    These calls are no longer used with the removal of tracker-store.

 src/libtracker-direct/tracker-direct.c    | 30 +-----------------------------
 src/libtracker-direct/tracker-direct.h    |  4 ----
 src/libtracker-direct/tracker-direct.vapi |  2 --
 3 files changed, 1 insertion(+), 35 deletions(-)
---
diff --git a/src/libtracker-direct/tracker-direct.c b/src/libtracker-direct/tracker-direct.c
index 34c6a80da..e71acd67e 100644
--- a/src/libtracker-direct/tracker-direct.c
+++ b/src/libtracker-direct/tracker-direct.c
@@ -26,8 +26,6 @@
 #include <libtracker-data/tracker-sparql.h>
 #include <libtracker-sparql/tracker-notifier-private.h>
 
-static TrackerDBManagerFlags default_flags = 0;
-
 typedef struct _TrackerDirectConnectionPrivate TrackerDirectConnectionPrivate;
 
 struct _TrackerDirectConnectionPrivate
@@ -237,7 +235,7 @@ tracker_direct_connection_initable_init (GInitable     *initable,
                g_free (filename);
        }
 
-       priv->data_manager = tracker_data_manager_new (db_flags | default_flags, priv->store,
+       priv->data_manager = tracker_data_manager_new (db_flags, priv->store,
                                                       priv->ontology,
                                                       FALSE, 100, 100);
        if (!g_initable_init (G_INITABLE (priv->data_manager), cancellable, error)) {
@@ -991,29 +989,3 @@ tracker_direct_connection_get_data_manager (TrackerDirectConnection *conn)
        priv = tracker_direct_connection_get_instance_private (conn);
        return priv->data_manager;
 }
-
-void
-tracker_direct_connection_set_default_flags (TrackerDBManagerFlags flags)
-{
-       default_flags = flags;
-}
-
-void
-tracker_direct_connection_sync (TrackerDirectConnection *conn)
-{
-       TrackerDirectConnectionPrivate *priv;
-
-       priv = tracker_direct_connection_get_instance_private (conn);
-
-       if (!priv->data_manager)
-               return;
-
-       /* Wait for pending updates. */
-       if (priv->update_thread)
-               g_thread_pool_free (priv->update_thread, TRUE, TRUE);
-       /* Selects are less important, readonly interfaces won't be bothersome */
-       if (priv->select_pool)
-               g_thread_pool_free (priv->select_pool, TRUE, FALSE);
-
-       set_up_thread_pools (conn, NULL);
-}
diff --git a/src/libtracker-direct/tracker-direct.h b/src/libtracker-direct/tracker-direct.h
index b1c06ee9d..c47087dd5 100644
--- a/src/libtracker-direct/tracker-direct.h
+++ b/src/libtracker-direct/tracker-direct.h
@@ -53,8 +53,4 @@ TrackerDirectConnection *tracker_direct_connection_new (TrackerSparqlConnectionF
 
 TrackerDataManager *tracker_direct_connection_get_data_manager (TrackerDirectConnection *conn);
 
-void tracker_direct_connection_set_default_flags (TrackerDBManagerFlags flags);
-
-void tracker_direct_connection_sync (TrackerDirectConnection *conn);
-
 #endif /* __TRACKER_LOCAL_CONNECTION_H__ */
diff --git a/src/libtracker-direct/tracker-direct.vapi b/src/libtracker-direct/tracker-direct.vapi
index cf5e3b452..5fb7d2da8 100644
--- a/src/libtracker-direct/tracker-direct.vapi
+++ b/src/libtracker-direct/tracker-direct.vapi
@@ -5,8 +5,6 @@ namespace Tracker {
                 public class Connection : Tracker.Sparql.Connection, GLib.Initable, GLib.AsyncInitable {
                         public Connection (Tracker.Sparql.ConnectionFlags connection_flags, GLib.File loc, 
GLib.File? ontology) throws Tracker.Sparql.Error, GLib.IOError, GLib.DBusError;
                         public unowned Tracker.Data.Manager get_data_manager ();
-                       public void sync ();
-                       public static void set_default_flags (Tracker.DBManagerFlags flags);
                 }
         }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]