[tracker/evolution-plugin] libtracker-sparql: Deprecate drop_graph
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/evolution-plugin] libtracker-sparql: Deprecate drop_graph
- Date: Mon, 21 Mar 2011 11:05:06 +0000 (UTC)
commit cc8452d6a23e9e1122487bdf9101bf55cda82266
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Mar 21 11:59:59 2011 +0100
libtracker-sparql: Deprecate drop_graph
docs/reference/libtracker-sparql/examples.sgml | 5 +----
src/libtracker-sparql/tracker-builder.vala | 4 ++--
2 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/docs/reference/libtracker-sparql/examples.sgml b/docs/reference/libtracker-sparql/examples.sgml
index d1097cd..f0309b1 100644
--- a/docs/reference/libtracker-sparql/examples.sgml
+++ b/docs/reference/libtracker-sparql/examples.sgml
@@ -36,11 +36,8 @@ int main (int argc, char **argv)
/* Create builder */
builder = <function><link linkend="tracker-sparql-builder-new-update">tracker_sparql_builder_new_update</link></function> ();
- /* Drop previous data */
- <function><link linkend="tracker-sparql-builder-drop-graph">tracker_sparql_builder_drop_graph</link></function> (builder, iri);
-
/* Insert new data */
- <function><link linkend="tracker-sparql-builder-insert-open">tracker_sparql_builder_insert_open</link></function> (builder, iri);
+ <function><link linkend="tracker-sparql-builder-insert-open">tracker_sparql_builder_insert_open</link></function> (builder, NULL);
<function><link linkend="tracker-sparql-builder-subject-iri">tracker_sparql_builder_subject_iri</link></function> (builder, iri);
diff --git a/src/libtracker-sparql/tracker-builder.vala b/src/libtracker-sparql/tracker-builder.vala
index a7c3b68..c69ea7d 100644
--- a/src/libtracker-sparql/tracker-builder.vala
+++ b/src/libtracker-sparql/tracker-builder.vala
@@ -193,14 +193,14 @@ public class Tracker.Sparql.Builder : Object {
* @self: a #TrackerSparqlBuilder
* @iri: a graph name.
*
- * Appends a DROP GRAPH clause.
+ * Deprecated API
*
* Since: 0.10
*/
public void drop_graph (string iri)
requires (state == State.UPDATE)
{
- str.append ("DROP GRAPH <%s>\n".printf (iri));
+ critical ("Use of DROP GRAPH is deprecated");
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]