[tracker-miners/wip/carlosg/cli-improvements: 6/30] libtracker-miner: Drop tracker_decorator_[prepend|delete]_id()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/cli-improvements: 6/30] libtracker-miner: Drop tracker_decorator_[prepend|delete]_id()
- Date: Tue, 18 Aug 2020 10:37:40 +0000 (UTC)
commit 19fdcbb60737d5f945e3c1bdeb99610f2f9c749d
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Aug 16 13:21:17 2020 +0200
libtracker-miner: Drop tracker_decorator_[prepend|delete]_id()
This API is now unused, and wasn't quite hooked up anyway...
src/libtracker-miner/tracker-decorator.c | 60 --------------------------------
src/libtracker-miner/tracker-decorator.h | 6 ----
2 files changed, 66 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-decorator.c b/src/libtracker-miner/tracker-decorator.c
index cd298dcd3..383c28a01 100644
--- a/src/libtracker-miner/tracker-decorator.c
+++ b/src/libtracker-miner/tracker-decorator.c
@@ -75,9 +75,6 @@ struct _TrackerDecoratorPrivate {
GStrv priority_graphs;
- /* Arrays of tracker IDs */
- GArray *prepended_ids;
-
GHashTable *tasks; /* Associative array of GTasks */
GArray *sparql_buffer; /* Array of SparqlUpdate */
GArray *commit_buffer; /* Array of SparqlUpdate */
@@ -956,7 +953,6 @@ tracker_decorator_finalize (GObject *object)
g_strfreev (priv->class_names);
g_hash_table_destroy (priv->tasks);
- g_array_unref (priv->prepended_ids);
g_clear_pointer (&priv->sparql_buffer, g_array_unref);
g_clear_pointer (&priv->commit_buffer, g_array_unref);
g_timer_destroy (priv->timer);
@@ -1085,7 +1081,6 @@ tracker_decorator_init (TrackerDecorator *decorator)
TrackerDecoratorPrivate *priv;
decorator->priv = priv = tracker_decorator_get_instance_private (decorator);
- priv->prepended_ids = g_array_new (FALSE, FALSE, sizeof (gint));
priv->batch_size = DEFAULT_BATCH_SIZE;
priv->timer = g_timer_new ();
priv->cancellable = g_cancellable_new ();
@@ -1142,61 +1137,6 @@ tracker_decorator_get_n_items (TrackerDecorator *decorator)
return priv->n_remaining_items;
}
-/**
- * tracker_decorator_prepend_id:
- * @decorator: a #TrackerDecorator.
- * @id: the ID of the resource ID.
- * @class_name_id: the ID of the resource's class.
- *
- * Adds resource needing extended metadata extraction to the queue.
- * @id is the same IDs emitted by tracker-store when the database is updated for
- * consistency. For details, see the GraphUpdated signal.
- *
- * Since: 0.18
- **/
-void
-tracker_decorator_prepend_id (TrackerDecorator *decorator,
- gint id,
- gint class_name_id)
-{
- TrackerDecoratorPrivate *priv;
-
- g_return_if_fail (TRACKER_IS_DECORATOR (decorator));
-
- priv = decorator->priv;
- g_array_append_val (priv->prepended_ids, id);
-}
-
-/**
- * tracker_decorator_delete_id:
- * @decorator: a #TrackerDecorator.
- * @id: an ID.
- *
- * Deletes resource needing extended metadata extraction from the
- * queue. @id is the same IDs emitted by tracker-store when the database is
- * updated for consistency. For details, see the GraphUpdated signal.
- *
- * Since: 0.18
- **/
-void
-tracker_decorator_delete_id (TrackerDecorator *decorator,
- gint id)
-{
- TrackerDecoratorPrivate *priv;
- guint i;
-
- g_return_if_fail (TRACKER_IS_DECORATOR (decorator));
-
- priv = decorator->priv;
-
- for (i = 0; i < priv->prepended_ids->len; i++) {
- if (id == g_array_index (priv->prepended_ids, gint, i)) {
- g_array_remove_index (priv->prepended_ids, i);
- break;
- }
- }
-}
-
/**
* tracker_decorator_next:
* @decorator: a #TrackerDecorator.
diff --git a/src/libtracker-miner/tracker-decorator.h b/src/libtracker-miner/tracker-decorator.h
index afee17e33..dcc5083b7 100644
--- a/src/libtracker-miner/tracker-decorator.h
+++ b/src/libtracker-miner/tracker-decorator.h
@@ -99,12 +99,6 @@ GQuark tracker_decorator_error_quark (void);
const gchar** tracker_decorator_get_class_names (TrackerDecorator *decorator);
guint tracker_decorator_get_n_items (TrackerDecorator *decorator);
-void tracker_decorator_prepend_id (TrackerDecorator *decorator,
- gint id,
- gint class_name_id);
-void tracker_decorator_delete_id (TrackerDecorator *decorator,
- gint id);
-
void tracker_decorator_next (TrackerDecorator *decorator,
GCancellable *cancellable,
GAsyncReadyCallback callback,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]