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



commit 5fc9156ce76ad71a507b2c52854fbd907cf8404a
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Jan 3 09:11:17 2013 -0500

    Remove unused e_cal_backend_store_remove_timezone().

 calendar/libedata-cal/e-cal-backend-store.c        |   41 --------------------
 calendar/libedata-cal/e-cal-backend-store.h        |    5 --
 .../libedata-cal/libedata-cal-sections.txt         |    1 -
 3 files changed, 0 insertions(+), 47 deletions(-)
---
diff --git a/calendar/libedata-cal/e-cal-backend-store.c b/calendar/libedata-cal/e-cal-backend-store.c
index b600faa..ec7fc44 100644
--- a/calendar/libedata-cal/e-cal-backend-store.c
+++ b/calendar/libedata-cal/e-cal-backend-store.c
@@ -658,26 +658,6 @@ cal_backend_store_put_timezone (ECalBackendStore *store,
 	return TRUE;
 }
 
-static gboolean
-cal_backend_store_remove_timezone (ECalBackendStore *store,
-                                   const gchar *tzid)
-{
-	gboolean ret_val = FALSE;
-
-	g_rw_lock_writer_lock (&store->priv->lock);
-	ret_val = g_hash_table_remove (store->priv->timezones, tzid);
-	g_rw_lock_writer_unlock (&store->priv->lock);
-
-	if (ret_val) {
-		store->priv->dirty = TRUE;
-
-		if (!store->priv->freeze_changes)
-			cal_backend_store_save_cache (store);
-	}
-
-	return ret_val;
-}
-
 static const icaltimezone *
 cal_backend_store_get_default_timezone (ECalBackendStore *store)
 {
@@ -896,7 +876,6 @@ e_cal_backend_store_class_init (ECalBackendStoreClass *class)
 	class->has_component = cal_backend_store_has_component;
 	class->get_timezone = cal_backend_store_get_timezone;
 	class->put_timezone = cal_backend_store_put_timezone;
-	class->remove_timezone = cal_backend_store_remove_timezone;
 	class->get_default_timezone = cal_backend_store_get_default_timezone;
 	class->set_default_timezone = cal_backend_store_set_default_timezone;
 	class->get_components_by_uid = cal_backend_store_get_components_by_uid;
@@ -1183,26 +1162,6 @@ e_cal_backend_store_put_timezone (ECalBackendStore *store,
 }
 
 /**
- * e_cal_backend_store_remove_timezone:
- *
- * Since: 2.28
- **/
-gboolean
-e_cal_backend_store_remove_timezone (ECalBackendStore *store,
-                                     const gchar *tzid)
-{
-	ECalBackendStoreClass *class;
-
-	g_return_val_if_fail (E_IS_CAL_BACKEND_STORE (store), FALSE);
-	g_return_val_if_fail (tzid != NULL, FALSE);
-
-	class = E_CAL_BACKEND_STORE_GET_CLASS (store);
-	g_return_val_if_fail (class->remove_timezone != NULL, FALSE);
-
-	return class->remove_timezone (store, tzid);
-}
-
-/**
  * e_cal_backend_store_get_default_timezone:
  *
  * Since: 2.28
diff --git a/calendar/libedata-cal/e-cal-backend-store.h b/calendar/libedata-cal/e-cal-backend-store.h
index 6ad033d..320decc 100644
--- a/calendar/libedata-cal/e-cal-backend-store.h
+++ b/calendar/libedata-cal/e-cal-backend-store.h
@@ -90,8 +90,6 @@ struct _ECalBackendStoreClass {
 						 const gchar *tzid);
 	gboolean	(*put_timezone)		(ECalBackendStore *store,
 						 const icaltimezone *zone);
-	gboolean	(*remove_timezone)	(ECalBackendStore *store,
-						 const gchar *tzid);
 	const icaltimezone *
 			(*get_default_timezone)	(ECalBackendStore *store);
 	gboolean	(*set_default_timezone)	(ECalBackendStore *store,
@@ -137,9 +135,6 @@ const icaltimezone *
 						 const gchar *tzid);
 gboolean	e_cal_backend_store_put_timezone (ECalBackendStore *store,
 						 const icaltimezone *zone);
-gboolean	e_cal_backend_store_remove_timezone
-						(ECalBackendStore *store,
-						 const gchar *tzid);
 const icaltimezone *
 		e_cal_backend_store_get_default_timezone
 						(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 d6adceb..c8a65af 100644
--- a/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
+++ b/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
@@ -140,7 +140,6 @@ e_cal_backend_store_remove_component
 e_cal_backend_store_has_component
 e_cal_backend_store_get_timezone
 e_cal_backend_store_put_timezone
-e_cal_backend_store_remove_timezone
 e_cal_backend_store_get_default_timezone
 e_cal_backend_store_set_default_timezone
 e_cal_backend_store_get_components_by_uid



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