[tracker/wip/carlosg/tracker-3.0-api-breaks: 43/79] libtracker-sparql: Drop dbus connection setter/getter



commit fac121b6a1953eb8c3b5f0964ac34868e7f7b108
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Dec 15 18:29:52 2019 +0100

    libtracker-sparql: Drop dbus connection setter/getter
    
    This is no longer something you can set up globaly, more up to the callers
    of TrackerEndpoint and tracker_sparql_connection_bus_new().

 .../libtracker-sparql-sections.txt                 |  2 --
 src/libtracker-sparql-backend/tracker-backend.vala |  9 -------
 src/libtracker-sparql/tracker-connection.vala      | 29 ----------------------
 3 files changed, 40 deletions(-)
---
diff --git a/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt 
b/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
index df5399e02..5cc78f155 100644
--- a/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
+++ b/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
@@ -123,8 +123,6 @@ tracker_sparql_connection_update_blank_finish
 tracker_sparql_connection_get_namespace_manager
 tracker_sparql_connection_set_domain
 tracker_sparql_connection_get_domain
-tracker_sparql_connection_get_dbus_connection
-tracker_sparql_connection_set_dbus_connection
 <SUBSECTION Standard>
 TrackerSparqlConnectionClass
 TRACKER_SPARQL_CONNECTION
diff --git a/src/libtracker-sparql-backend/tracker-backend.vala 
b/src/libtracker-sparql-backend/tracker-backend.vala
index 040e3ec2b..5de387ca7 100644
--- a/src/libtracker-sparql-backend/tracker-backend.vala
+++ b/src/libtracker-sparql-backend/tracker-backend.vala
@@ -18,7 +18,6 @@
  */
 
 static string domain_name = null;
-static DBusConnection global_dbus_connection = null;
 
 public static Tracker.Sparql.Connection tracker_sparql_connection_remote_new (string url_base) {
        return new Tracker.Remote.Connection (url_base);
@@ -49,11 +48,3 @@ public static void tracker_sparql_connection_set_domain (string? domain) {
 public static string? tracker_sparql_connection_get_domain () {
        return domain_name;
 }
-
-public static void tracker_sparql_connection_set_dbus_connection (DBusConnection dbus_connection) {
-       global_dbus_connection = dbus_connection;
-}
-
-public static DBusConnection? tracker_sparql_connection_get_dbus_connection () {
-       return global_dbus_connection;
-}
diff --git a/src/libtracker-sparql/tracker-connection.vala b/src/libtracker-sparql/tracker-connection.vala
index faabd47d8..0d8ba9b05 100644
--- a/src/libtracker-sparql/tracker-connection.vala
+++ b/src/libtracker-sparql/tracker-connection.vala
@@ -423,35 +423,6 @@ public abstract class Tracker.Sparql.Connection : Object {
         */
        public extern static string? get_domain ();
 
-       /**
-        * tracker_sparql_connection_set_dbus_connection:
-        * @dbus_connection: A #GDBusConnection to a suitable message bus.
-        *
-        * By default, a connection is opened to the session-wide Tracker services
-        * running on the D-Bus session bus. This function allows you to connect to
-        * Tracker services that are running on a different bus.
-        *
-        * This function must be called before any tracker_sparql_connection_get()
-        * calls happen.
-        *
-        * See also: the TRACKER_IPC_BUS environment variable.
-        *
-        * Since: 2.2
-        */
-       public extern static void set_dbus_connection (DBusConnection dbus_connection);
-
-       /**
-        * tracker_sparql_connection_get_dbus_connection:
-        *
-        * Gets the D-Bus connection that is used to contact the Tracker services.
-        *
-        * Returns: (transfer none): A #GDBusConnection instance, or %NULL if the
-        *                           default is being used.
-        *
-        * Since: 2.0
-        */
-       public extern static DBusConnection? get_dbus_connection ();
-
        /**
         * tracker_sparql_connection_query_statement:
         * @self: a #TrackerSparqlConnection


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