[tracker-miners/wip/carlosg/speed-track: 5/22] libtracker-miner: Drop unused struct field
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/speed-track: 5/22] libtracker-miner: Drop unused struct field
- Date: Thu, 22 Oct 2020 14:45:55 +0000 (UTC)
commit ca554ed966993ea0fec1d7614716537babb39bc6
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Oct 13 23:05:31 2020 +0200
libtracker-miner: Drop unused struct field
The timer was unused in TrackerCrawler, except for setting it up
and destroying it.
src/libtracker-miner/tracker-crawler.c | 22 ----------------------
1 file changed, 22 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-crawler.c b/src/libtracker-miner/tracker-crawler.c
index 1dde922a7..8b038581e 100644
--- a/src/libtracker-miner/tracker-crawler.c
+++ b/src/libtracker-miner/tracker-crawler.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]