Commit ca554ed9 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-miner: Drop unused struct field

The timer was unused in TrackerCrawler, except for setting it up
and destroying it.
parent 8efd7f6a
......@@ -95,9 +95,6 @@ struct TrackerCrawlerPrivate {
gchar *file_attributes;
/* Statistics */
GTimer *timer;
/* Status */
gboolean is_running;
gboolean is_finished;
......@@ -287,10 +284,6 @@ crawler_finalize (GObject *object)
priv = tracker_crawler_get_instance_private (TRACKER_CRAWLER (object));
if (priv->timer) {
g_timer_destroy (priv->timer);
}
if (priv->idle_id) {
g_source_remove (priv->idle_id);
}
......@@ -1041,13 +1034,6 @@ tracker_crawler_start (TrackerCrawler *crawler,
priv->was_started = TRUE;
/* Time the event */
if (priv->timer) {
g_timer_destroy (priv->timer);
}
priv->timer = g_timer_new ();
/* Set a brand new cancellable */
if (priv->cancellable) {
g_cancellable_cancel (priv->cancellable);
......@@ -1065,9 +1051,6 @@ tracker_crawler_start (TrackerCrawler *crawler,
if (!check_directory (crawler, info, file)) {
directory_root_info_free (info);
g_timer_destroy (priv->timer);
priv->timer = NULL;
priv->is_running = FALSE;
priv->is_finished = TRUE;
......@@ -1103,11 +1086,6 @@ tracker_crawler_stop (TrackerCrawler *crawler)
process_func_stop (crawler);
if (priv->timer) {
g_timer_destroy (priv->timer);
priv->timer = NULL;
}
/* Clean up queue */
g_queue_foreach (priv->directories, (GFunc) directory_root_info_free, NULL);
g_queue_clear (priv->directories);
......
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