[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 100/116] libtracker-miner: Drop TrackerMonitor API to get/set the indexing tree



commit 5c9bad5eaf18d1e3ad1f4cc54af405285e7f4f67
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Mar 3 00:52:13 2019 +0100

    libtracker-miner: Drop TrackerMonitor API to get/set the indexing tree
    
    This is unused now.

 src/libtracker-miner/tracker-file-notifier.c |  2 --
 src/libtracker-miner/tracker-monitor.c       | 34 ----------------------------
 2 files changed, 36 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 7577d3028..52f0c0f46 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -118,8 +118,6 @@ tracker_file_notifier_set_property (GObject      *object,
        switch (prop_id) {
        case PROP_INDEXING_TREE:
                priv->indexing_tree = g_value_dup_object (value);
-               tracker_monitor_set_indexing_tree (priv->monitor,
-                                                  priv->indexing_tree);
                break;
        case PROP_DATA_PROVIDER:
                priv->data_provider = g_value_dup_object (value);
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index 7157c6a47..f292fa5e7 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -314,7 +314,6 @@ tracker_monitor_finalize (GObject *object)
 
        g_hash_table_unref (priv->cached_events);
        g_hash_table_unref (priv->monitors);
-       g_clear_object (&priv->tree);
 
        G_OBJECT_CLASS (tracker_monitor_parent_class)->finalize (object);
 }
@@ -813,39 +812,6 @@ tracker_monitor_get_enabled (TrackerMonitor *monitor)
        return priv->enabled;
 }
 
-TrackerIndexingTree *
-tracker_monitor_get_indexing_tree (TrackerMonitor *monitor)
-{
-       TrackerMonitorPrivate *priv;
-
-       g_return_val_if_fail (TRACKER_IS_MONITOR (monitor), NULL);
-
-       priv = tracker_monitor_get_instance_private (monitor);
-
-       return priv->tree;
-}
-
-void
-tracker_monitor_set_indexing_tree (TrackerMonitor      *monitor,
-                                   TrackerIndexingTree *tree)
-{
-       TrackerMonitorPrivate *priv;
-
-       g_return_if_fail (TRACKER_IS_MONITOR (monitor));
-       g_return_if_fail (!tree || TRACKER_IS_INDEXING_TREE (tree));
-
-       priv = tracker_monitor_get_instance_private (monitor);
-
-       if (priv->tree) {
-               g_object_unref (priv->tree);
-               priv->tree = NULL;
-       }
-
-       if (tree) {
-               priv->tree = g_object_ref (tree);
-       }
-}
-
 void
 tracker_monitor_set_enabled (TrackerMonitor *monitor,
                              gboolean        enabled)


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