[gnome-calendar/ui-rewrite] manager: remove internal date range



commit bd545dc2a9f9c5fbf93b04e6f586c1e8f0141f92
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Mon Oct 20 23:46:21 2014 -0400

    manager: remove internal date range
    
    This is not needed since the range is kept by ECalDataModel instance

 src/gcal-manager.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/src/gcal-manager.c b/src/gcal-manager.c
index 8e3b5d3..43ad387 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);
 


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