[tracker] libtracker-sparql: Remove get_direct(_async|_finish)
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-sparql: Remove get_direct(_async|_finish)
- Date: Tue, 11 Jul 2017 16:14:07 +0000 (UTC)
commit 8acaa3e77283efd2a5661ac0ae050b8993c8e08b
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jul 10 02:21:52 2017 +0200
libtracker-sparql: Remove get_direct(_async|_finish)
Those functions have been deprecated for years and are being removed
for 2.0. Use tracker_sparql_connection_get() and async variants instead,
that will smartly use the direct connection underneath.
.../libtracker-sparql-sections.txt | 3 -
src/libtracker-sparql-backend/tracker-backend.vala | 8 ---
src/libtracker-sparql/tracker-connection.vala | 59 --------------------
3 files changed, 0 insertions(+), 70 deletions(-)
---
diff --git a/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
b/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
index 1180159..1a06559 100644
--- a/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
+++ b/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
@@ -132,9 +132,6 @@ TrackerSparqlConnection
tracker_sparql_connection_get
tracker_sparql_connection_get_async
tracker_sparql_connection_get_finish
-tracker_sparql_connection_get_direct
-tracker_sparql_connection_get_direct_async
-tracker_sparql_connection_get_direct_finish
tracker_sparql_connection_query
tracker_sparql_connection_query_async
tracker_sparql_connection_query_finish
diff --git a/src/libtracker-sparql-backend/tracker-backend.vala
b/src/libtracker-sparql-backend/tracker-backend.vala
index d58d91d..76415d3 100644
--- a/src/libtracker-sparql-backend/tracker-backend.vala
+++ b/src/libtracker-sparql-backend/tracker-backend.vala
@@ -326,14 +326,6 @@ public static Tracker.Sparql.Connection tracker_sparql_connection_get (Cancellab
return Tracker.Sparql.Backend.get_internal (cancellable);
}
-public async static Tracker.Sparql.Connection tracker_sparql_connection_get_direct_async (Cancellable?
cancellable = null) throws Tracker.Sparql.Error, IOError, DBusError, SpawnError {
- return yield Tracker.Sparql.Backend.get_internal_async (cancellable);
-}
-
-public static Tracker.Sparql.Connection tracker_sparql_connection_get_direct (Cancellable? cancellable =
null) throws Tracker.Sparql.Error, IOError, DBusError, SpawnError {
- return Tracker.Sparql.Backend.get_internal (cancellable);
-}
-
public static Tracker.Sparql.Connection tracker_sparql_connection_remote_new (string url_base) {
return new Tracker.Remote.Connection (url_base);
}
diff --git a/src/libtracker-sparql/tracker-connection.vala b/src/libtracker-sparql/tracker-connection.vala
index 7fc7f23..f06bbe3 100644
--- a/src/libtracker-sparql/tracker-connection.vala
+++ b/src/libtracker-sparql/tracker-connection.vala
@@ -157,65 +157,6 @@ public abstract class Tracker.Sparql.Connection : Object {
public extern static new Connection get (Cancellable? cancellable = null) throws Sparql.Error,
IOError, DBusError, SpawnError;
/**
- * tracker_sparql_connection_get_direct_finish:
- * @_res_: The #GAsyncResult from the callback used to return the #TrackerSparqlConnection
- * @error: The error which occurred or %NULL
- *
- * This function is called from the callback provided for
- * tracker_sparql_connection_get_direct_async() to return the connection
- * requested or an error in cases of failure.
- *
- * Returns: a new #TrackerSparqlConnection. Call g_object_unref() on the
- * object when no longer used.
- *
- * Since: 0.10
- *
- * Deprecated: 0.12: Use tracker_sparql_connection_get_finish instead.
- */
-
- /**
- * tracker_sparql_connection_get_direct_async:
- * @cancellable: a #GCancellable used to cancel the operation
- * @_callback_: user-defined #GAsyncReadyCallback to be called when
- * asynchronous operation is finished.
- * @_user_data_: user-defined data to be passed to @_callback_
- *
- * A #TrackerSparqlConnection is returned asynchronously in the @_callback_ of
- * your choosing. You must call
- * tracker_sparql_connection_get_direct_finish() to find out if the
- * connection was returned without error.
- *
- * See also: tracker_sparql_connection_get_direct().
- *
- * Since: 0.10
- *
- * Deprecated: 0.12: Use tracker_sparql_connection_get_async instead.
- */
- [Version (deprecated=true)]
- public extern async static Connection get_direct_async (Cancellable? cancellable = null) throws
Sparql.Error, IOError, DBusError, SpawnError;
-
- /**
- * tracker_sparql_connection_get_direct:
- * @cancellable: a #GCancellable used to cancel the operation
- * @error: #GError for error reporting.
- *
- * This behaves the same way tracker_sparql_connection_get() does, however,
- * the #TrackerSparqlConnection can only be used for read-only requests.
- * The advantage to this API over the tracker_sparql_connection_get()
- * function is that it will use direct-access. This is faster than using
- * D-Bus which may be the case with tracker_sparql_connection_get().
- *
- * Returns: a new #TrackerSparqlConnection. Call g_object_unref() on the
- * object when no longer used.
- *
- * Since: 0.10
- *
- * Deprecated: 0.12: Use tracker_sparql_connection_get instead.
- */
- [Version (deprecated=true)]
- public extern static new Connection get_direct (Cancellable? cancellable = null) throws Sparql.Error,
IOError, DBusError, SpawnError;
-
- /**
* tracker_sparql_connection_remote_new:
*
* Returns: a new remote #TrackerSparqlConnection. Call g_object_unref() on the
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]