[tracker/rss-enclosures] libtracker-sparql: Remove update_commit



commit 3183381901b6904edfe4f94488939d0dc559c54d
Author: Jürg Billeter <j bitron ch>
Date:   Mon Aug 9 12:14:03 2010 +0200

    libtracker-sparql: Remove update_commit
    
    Separate commit is no longer needed with WAL.

 docs/reference/libtracker-sparql/examples.sgml     |   19 ---------
 .../libtracker-sparql-sections.txt                 |    3 -
 src/libtracker-sparql/tracker-connection.vala      |   41 --------------------
 src/libtracker-sparql/tracker-plugin-loader.vala   |    8 ----
 4 files changed, 0 insertions(+), 71 deletions(-)
---
diff --git a/docs/reference/libtracker-sparql/examples.sgml b/docs/reference/libtracker-sparql/examples.sgml
index 3507571..c03403c 100644
--- a/docs/reference/libtracker-sparql/examples.sgml
+++ b/docs/reference/libtracker-sparql/examples.sgml
@@ -202,14 +202,6 @@ int main (int argc, const char **argv)
     </para>
 
     <para>
-      You can assure that all previous update operations where commited to the store before
-      going on with the program, using
-      <function><link linkend="tracker-sparql-connection-update-commit">tracker_sparql_connection_update_commit</link></function>
-      or its equivalent asynchronous version (
-      <function><link linkend="tracker-sparql-connection-update-commit-async">tracker_sparql_connection_update_commit_async</link></function>)
-    </para>
-
-    <para>
       Once you no longer need the connection, remember to call <function><link linkend="g-object-unref">g_object_unref</link></function>
       for the <type><link linkend="TrackerSparqlConnection-struct">TrackerSparqlConnection</link></type>.
     </para>
@@ -260,17 +252,6 @@ int main (int argc, const char **argv)
              error ? error-&gt;message : "unknown error");
   }
 
-  /* Commit the transaction (not really needed in this
-   * example, but anyway) */
-  <function><link linkend="tracker-sparql-connection-update-commit">tracker_sparql_connection_update_commit</link></function> (connection,
-				    NULL,
-				    &amp;error);
-  if (error) {
-    /* Some error happened commiting, not good */
-    g_error ("Couldn't commit all previous transactions: '%s'",
-             error ? error-&gt;message : "unknown error");
-  }
-
   g_object_unref (connection);
 
   return 0;
diff --git a/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt b/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
index 49d1b5e..dadb3a3 100644
--- a/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
+++ b/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
@@ -80,9 +80,6 @@ tracker_sparql_connection_update_finish
 tracker_sparql_connection_update_blank
 tracker_sparql_connection_update_blank_async
 tracker_sparql_connection_update_blank_finish
-tracker_sparql_connection_update_commit
-tracker_sparql_connection_update_commit_async
-tracker_sparql_connection_update_commit_finish
 tracker_sparql_connection_import
 tracker_sparql_connection_import_async
 tracker_sparql_connection_import_finish
diff --git a/src/libtracker-sparql/tracker-connection.vala b/src/libtracker-sparql/tracker-connection.vala
index c358d11..3b229eb 100644
--- a/src/libtracker-sparql/tracker-connection.vala
+++ b/src/libtracker-sparql/tracker-connection.vala
@@ -325,47 +325,6 @@ public abstract class Tracker.Sparql.Connection : Object {
 	}
 
 	/**
-	 * tracker_sparql_connection_update_commit:
-	 * @self: a #TrackerSparqlConnection
-	 * @cancellable: a #GCancellable used to cancel the operation
-	 * @error: #GError for error reporting.
-	 *
-	 * Makes sure that any previous asynchronous update has been commited
-	 * to the store. Only applies to tracker_sparql_connection_update_async()
-	 * with the right priority (Priority is used to identify batch updates.)
-	 * The API call is completely synchronous, so it may block.
-	 */
-	public virtual void update_commit (Cancellable? cancellable = null) throws Sparql.Error {
-		warning ("Interface 'update_commit' not implemented");
-	}
-
-	/**
-	 * tracker_sparql_connection_update_commit_async:
-	 * @self: a #TrackerSparqlConnection
-	 * @_callback_: user-defined #GAsyncReadyCallback to be called when
-	 *              asynchronous operation is finished.
-	 * @_user_data_: user-defined data to be passed to @_callback_
-	 * @cancellable: a #GCancellable used to cancel the operation
-	 *
-	 * Makes sure, asynchronously, that any previous asynchronous update has
-	 * been commited to the store. Only applies to
-	 * tracker_sparql_connection_update_async() with the right priority
-	 * (Priority is used to identify batch updates.)
-	 */
-
-	/**
-	 * tracker_sparql_connection_update_commit_finish:
-	 * @self: a #TrackerSparqlConnection
-	 * @_res_: a #GAsyncResult with the result of the operation
-	 * @error: #GError for error reporting.
-	 *
-	 * Finishes the asynchronous commit operation.
-	 */
-	public async virtual void update_commit_async (Cancellable? cancellable = null) throws Sparql.Error {
-		warning ("Interface 'update_commit_async' not implemented");
-	}
-
-	/**
 	 * tracker_sparql_connection_import:
 	 * @self: a #TrackerSparqlConnection
 	 * @file: a #GFile
diff --git a/src/libtracker-sparql/tracker-plugin-loader.vala b/src/libtracker-sparql/tracker-plugin-loader.vala
index 1c95a72..c8bf878 100644
--- a/src/libtracker-sparql/tracker-plugin-loader.vala
+++ b/src/libtracker-sparql/tracker-plugin-loader.vala
@@ -71,14 +71,6 @@ class Tracker.Sparql.PluginLoader : Connection {
 		return yield bus.update_blank_async (sparql, priority, cancellable);
 	}
 
-	public override void update_commit (Cancellable? cancellable = null) throws Sparql.Error {
-		bus.update_commit (cancellable);
-	}
-
-	public async override void update_commit_async (Cancellable? cancellable = null) throws Sparql.Error {
-		yield bus.update_commit_async (cancellable);
-	}
-
 	public override void import (File file, Cancellable? cancellable = null) throws Sparql.Error {
 		bus.import (file, cancellable);
 	}



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