[tracker/wip/carlosg/tracker-3.0-api-breaks: 44/79] libtracker-sparql: Drop tracker_sparql_connection_[gs]et_domain
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/tracker-3.0-api-breaks: 44/79] libtracker-sparql: Drop tracker_sparql_connection_[gs]et_domain
- Date: Mon, 27 Jan 2020 12:20:58 +0000 (UTC)
commit 8778e84835e59e195f2101feb8072850e2a8c906
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Dec 30 16:01:49 2019 +0100
libtracker-sparql: Drop tracker_sparql_connection_[gs]et_domain
.../libtracker-sparql-sections.txt | 2 --
.../reference/libtracker-sparql/migrating-2to3.xml | 6 +++++
src/libtracker-sparql-backend/tracker-backend.vala | 11 --------
src/libtracker-sparql/tracker-connection.vala | 30 ----------------------
4 files changed, 6 insertions(+), 43 deletions(-)
---
diff --git a/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
b/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
index 5cc78f155..c789762a6 100644
--- a/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
+++ b/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
@@ -121,8 +121,6 @@ tracker_sparql_connection_update_blank
tracker_sparql_connection_update_blank_async
tracker_sparql_connection_update_blank_finish
tracker_sparql_connection_get_namespace_manager
-tracker_sparql_connection_set_domain
-tracker_sparql_connection_get_domain
<SUBSECTION Standard>
TrackerSparqlConnectionClass
TRACKER_SPARQL_CONNECTION
diff --git a/docs/reference/libtracker-sparql/migrating-2to3.xml
b/docs/reference/libtracker-sparql/migrating-2to3.xml
index c0a666d8f..8e300944b 100644
--- a/docs/reference/libtracker-sparql/migrating-2to3.xml
+++ b/docs/reference/libtracker-sparql/migrating-2to3.xml
@@ -184,4 +184,10 @@ SELECT ?url ?tag {
with data from the local endpoint.
</para>
</section>
+ <section>
+ <title>No tracker_sparql_connection_set_domain</title>
+ <para>
+ Use a dedicated DBus TrackerSparqlConnection to the specific domain.
+ </para>
+ </section>
</chapter>
diff --git a/src/libtracker-sparql-backend/tracker-backend.vala
b/src/libtracker-sparql-backend/tracker-backend.vala
index 5de387ca7..4b89ed1ce 100644
--- a/src/libtracker-sparql-backend/tracker-backend.vala
+++ b/src/libtracker-sparql-backend/tracker-backend.vala
@@ -17,8 +17,6 @@
* Boston, MA 02110-1301, USA.
*/
-static string domain_name = null;
-
public static Tracker.Sparql.Connection tracker_sparql_connection_remote_new (string url_base) {
return new Tracker.Remote.Connection (url_base);
}
@@ -39,12 +37,3 @@ public static async Tracker.Sparql.Connection tracker_sparql_connection_new_asyn
yield;
return conn;
}
-
-public static void tracker_sparql_connection_set_domain (string? domain) {
- if (domain_name == null)
- domain_name = domain;
-}
-
-public static string? tracker_sparql_connection_get_domain () {
- return domain_name;
-}
diff --git a/src/libtracker-sparql/tracker-connection.vala b/src/libtracker-sparql/tracker-connection.vala
index 0d8ba9b05..8a3ec5c06 100644
--- a/src/libtracker-sparql/tracker-connection.vala
+++ b/src/libtracker-sparql/tracker-connection.vala
@@ -393,36 +393,6 @@ public abstract class Tracker.Sparql.Connection : Object {
return null;
}
- /**
- * tracker_sparql_connection_set_domain:
- * @domain: The domain name for the default connection
- *
- * Sets the domain (usually a DBus name or application ID) that
- * will be used on on the connection obtained by
- * tracker_sparql_connection_get(). See the "Isolating tracker-store
- * clients" section in the docs for this library.
- *
- * This function must be called before any tracker_sparql_connection_get()
- * calls happen.
- *
- * Since: 2.0
- */
- public extern static void set_domain (string? domain);
-
- /**
- * tracker_sparql_connection_get_domain:
- *
- * Gets the domain (usually a DBus name or application ID) that
- * will be used on on the connection obtained by
- * tracker_sparql_connection_get().
- * See tracker_sparql_connection_set_domain() for more information.
- *
- * Returns: (transfer full): The domain string, or %NULL if none is set
- *
- * Since: 2.0
- */
- public extern static string? get_domain ();
-
/**
* tracker_sparql_connection_query_statement:
* @self: a #TrackerSparqlConnection
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]