[evolution-data-server] Remove unused e_cal_backend_store_remove().



commit 03bc7cf7869d4d12377dc86cdec295a50ac9fe18
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Jan 3 09:22:53 2013 -0500

    Remove unused e_cal_backend_store_remove().

 calendar/libedata-cal/e-cal-backend-store.c        |   38 --------------------
 calendar/libedata-cal/e-cal-backend-store.h        |    2 -
 .../libedata-cal/libedata-cal-sections.txt         |    1 -
 3 files changed, 0 insertions(+), 41 deletions(-)
---
diff --git a/calendar/libedata-cal/e-cal-backend-store.c b/calendar/libedata-cal/e-cal-backend-store.c
index df0a424..b600faa 100644
--- a/calendar/libedata-cal/e-cal-backend-store.c
+++ b/calendar/libedata-cal/e-cal-backend-store.c
@@ -511,21 +511,6 @@ cal_backend_store_load (ECalBackendStore *store)
 }
 
 static gboolean
-cal_backend_store_remove (ECalBackendStore *store)
-{
-	/* This will remove all the contents in the directory */
-	e_file_cache_remove (store->priv->keys_cache);
-
-	g_hash_table_destroy (store->priv->timezones);
-	store->priv->timezones = NULL;
-
-	g_hash_table_destroy (store->priv->comp_uid_hash);
-	store->priv->comp_uid_hash = NULL;
-
-	return TRUE;
-}
-
-static gboolean
 cal_backend_store_clean (ECalBackendStore *store)
 {
 	g_rw_lock_writer_lock (&store->priv->lock);
@@ -904,7 +889,6 @@ e_cal_backend_store_class_init (ECalBackendStoreClass *class)
 	object_class->constructed = cal_backend_store_constructed;
 
 	class->load = cal_backend_store_load;
-	class->remove = cal_backend_store_remove;
 	class->clean = cal_backend_store_clean;
 	class->get_component = cal_backend_store_get_component;
 	class->put_component = cal_backend_store_put_component;
@@ -1018,28 +1002,6 @@ e_cal_backend_store_load (ECalBackendStore *store)
 }
 
 /**
- * e_cal_backend_store_remove:
- *
- * Since: 2.28
- **/
-gboolean
-e_cal_backend_store_remove (ECalBackendStore *store)
-{
-	ECalBackendStoreClass *class;
-
-	g_return_val_if_fail (E_IS_CAL_BACKEND_STORE (store), FALSE);
-
-	class = E_CAL_BACKEND_STORE_GET_CLASS (store);
-	g_return_val_if_fail (class->remove != NULL, FALSE);
-
-	/* remove interval tree */
-	e_intervaltree_destroy (store->priv->intervaltree);
-	store->priv->intervaltree = NULL;
-
-	return class->remove (store);
-}
-
-/**
  * e_cal_backend_store_clean:
  *
  * Since: 2.28
diff --git a/calendar/libedata-cal/e-cal-backend-store.h b/calendar/libedata-cal/e-cal-backend-store.h
index 940cc83..6ad033d 100644
--- a/calendar/libedata-cal/e-cal-backend-store.h
+++ b/calendar/libedata-cal/e-cal-backend-store.h
@@ -68,7 +68,6 @@ struct _ECalBackendStoreClass {
 
 	/* virtual methods */
 	gboolean	(*load)			(ECalBackendStore *store);
-	gboolean	(*remove)		(ECalBackendStore *store);
 	gboolean	(*clean)		(ECalBackendStore *store);
 	ECalComponent *	(*get_component)	(ECalBackendStore *store,
 						 const gchar *uid,
@@ -112,7 +111,6 @@ ECalBackendStore *
 const gchar *	e_cal_backend_store_get_path	(ECalBackendStore *store);
 gboolean	e_cal_backend_store_load	(ECalBackendStore *store);
 gboolean	e_cal_backend_store_is_loaded	(ECalBackendStore *store);
-gboolean	e_cal_backend_store_remove	(ECalBackendStore *store);
 gboolean	e_cal_backend_store_clean	(ECalBackendStore *store);
 ECalComponent *	e_cal_backend_store_get_component
 						(ECalBackendStore *store,
diff --git a/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt b/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
index b733e60..d6adceb 100644
--- a/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
+++ b/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
@@ -132,7 +132,6 @@ e_cal_backend_store_new
 e_cal_backend_store_get_path
 e_cal_backend_store_load
 e_cal_backend_store_is_loaded
-e_cal_backend_store_remove
 e_cal_backend_store_clean
 e_cal_backend_store_get_component
 e_cal_backend_store_put_component_with_time_range



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