summaryrefslogtreecommitdiff
path: root/docs/reference/libtracker-sparql/examples.sgml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/reference/libtracker-sparql/examples.sgml')
-rw-r--r--docs/reference/libtracker-sparql/examples.sgml12
1 files changed, 0 insertions, 12 deletions
diff --git a/docs/reference/libtracker-sparql/examples.sgml b/docs/reference/libtracker-sparql/examples.sgml
index f0309b167..5590e3b00 100644
--- a/docs/reference/libtracker-sparql/examples.sgml
+++ b/docs/reference/libtracker-sparql/examples.sgml
@@ -30,9 +30,6 @@ int main (int argc, char **argv)
const gchar *query_str;
time_t now;
- /* Initialize GLib type system */
- g_type_init ();
-
/* Create builder */
builder = <function><link linkend="tracker-sparql-builder-new-update">tracker_sparql_builder_new_update</link></function> ();
@@ -130,9 +127,6 @@ int main (int argc, const char **argv)
<type><link linkend="TrackerSparqlCursor-struct">TrackerSparqlCursor</link></type> *cursor;
const gchar *query = "SELECT nie:url(?u) WHERE { ?u a nfo:FileDataObject }";
- /* Initialize GLib type system */
- g_type_init ();
-
/* As we know only read-only queries will be done, it's enough
* to use a connection with only direct-access setup. The NULL
* represents a possible GCancellable.
@@ -234,9 +228,6 @@ int main (int argc, const char **argv)
"FILTER (!bound(?tag)) "
"}";
- /* Initialize GLib type system */
- g_type_init ();
-
/* Do NOT get a direct connection if you're going to do some write
* operation in the Store. The NULL represents a possible
* GCancellable.
@@ -330,9 +321,6 @@ int main (int argc, const char **argv)
const gchar *query =
"INSERT { _:foo a nie:InformationElement } WHERE { ?x a rdfs:Class }";
- /* Initialize GLib type system */
- g_type_init ();
-
/* Do NOT get a direct connection if you're going to do some write
* operation in the Store. The NULL represents a possible
* GCancellable.