Commit 044a75f6 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: Drop TrackerMonitor API to get/set the indexing tree

This is unused now.
parent fbb40507
Pipeline #64616 passed with stage
in 2 minutes and 15 seconds
......@@ -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);
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment