[tracker-miners/wip/carlosg/tracker-3.0-api-breaks: 8/40] libtracker-miner: Drop usage of TrackerSparqlBuilder



commit 4c5e3b416f0d88d1e53eb1bbe46bfcf62a99364b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Dec 24 08:28:34 2019 +0100

    libtracker-miner: Drop usage of TrackerSparqlBuilder
    
    We created the object purely for API compatibility, but it's unused.
    Now that libtracker-miner is internal to tracker-miners, we can drop
    it.

 src/libtracker-miner/tracker-decorator.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-decorator.c b/src/libtracker-miner/tracker-decorator.c
index f5a65bd30..dfb55ea8b 100644
--- a/src/libtracker-miner/tracker-decorator.c
+++ b/src/libtracker-miner/tracker-decorator.c
@@ -144,7 +144,6 @@ static TrackerDecoratorInfo *
 tracker_decorator_info_new (TrackerDecorator    *decorator,
                             TrackerSparqlCursor *cursor)
 {
-       TrackerSparqlBuilder *sparql;
        TrackerDecoratorInfo *info;
        GCancellable *cancellable;
 
@@ -160,10 +159,6 @@ tracker_decorator_info_new (TrackerDecorator    *decorator,
                                 decorator_task_done, info);
        g_object_unref (cancellable);
 
-       sparql = tracker_sparql_builder_new_update ();
-       g_task_set_task_data (info->task, sparql,
-                             (GDestroyNotify) g_object_unref);
-
        return info;
 }
 
@@ -1646,9 +1641,8 @@ tracker_decorator_info_get_mimetype (TrackerDecoratorInfo *info)
  * Get the #GTask associated with retrieving extended metadata and
  * information for a URN in Tracker.
  *
- * The task object's data (accessible with g_task_get_task_data()) is the
- * #TrackerSparqlBuilder. Use tracker_decorator_info_complete() to complete
- * the task instead of using this object.
+ * Use tracker_decorator_info_complete() to complete the task instead
+ * using this object.
  *
  * Returns: (transfer none): the #GTask for #TrackerDecoratorInfo on
  * success or #NULL if there is no existing #GTask.


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