[tracker-miners/wip/carlosg/tracker-3.0-api-breaks: 1/25] libtracker-miner: Drop usage of TrackerSparqlBuilder
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/tracker-3.0-api-breaks: 1/25] libtracker-miner: Drop usage of TrackerSparqlBuilder
- Date: Tue, 14 Jan 2020 17:39:46 +0000 (UTC)
commit 1113bdb83d8add12542ef5bc3aa527ea9a7ff0f2
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]