From 772fa7b5862744bf955d0eafe81b873b7fdf4a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Mon, 20 Oct 2014 23:46:21 -0400 Subject: [PATCH] manager: remove internal date range This is not needed since the range is kept by ECalDataModel instance --- src/gcal-manager.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/gcal-manager.c b/src/gcal-manager.c index 8e3b5d3b..43ad3873 100644 --- a/src/gcal-manager.c +++ b/src/gcal-manager.c @@ -43,10 +43,6 @@ typedef struct ECalDataModel *e_data_model; - /* The range of dates defining the query */ - icaltimetype *initial_date; - icaltimetype *final_date; - GCancellable *async_ops; /* timezone */ @@ -329,16 +325,6 @@ gcal_manager_init (GcalManager *self) priv = gcal_manager_get_instance_private (self); priv->system_timezone = e_cal_util_get_system_timezone (); - priv->initial_date = g_new(icaltimetype, 1); - *(priv->initial_date) = icaltime_from_timet_with_zone (time (NULL), - 0, - priv->system_timezone); - priv->final_date = gcal_dup_icaltime (priv->initial_date); - - *(priv->initial_date) = icaltime_set_timezone (priv->initial_date, - priv->system_timezone); - *(priv->final_date) = icaltime_set_timezone (priv->final_date, - priv->system_timezone); priv->clients = g_hash_table_new_full ((GHashFunc) e_source_hash, (GEqualFunc) e_source_equal, @@ -388,11 +374,6 @@ gcal_manager_finalize (GObject *object) priv = gcal_manager_get_instance_private (GCAL_MANAGER (object)); - if (priv->initial_date != NULL) - g_free (priv->initial_date); - if (priv->final_date != NULL) - g_free (priv->final_date); - if (priv->e_data_model != NULL) g_object_unref (priv->e_data_model);