Remove unused e_cal_backend_store_remove_timezone().
authorMatthew Barnes <mbarnes@redhat.com>
Thu, 3 Jan 2013 14:11:17 +0000 (09:11 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Sat, 5 Jan 2013 02:18:20 +0000 (21:18 -0500)
calendar/libedata-cal/e-cal-backend-store.c
calendar/libedata-cal/e-cal-backend-store.h
docs/reference/calendar/libedata-cal/libedata-cal-sections.txt

index b600faa..ec7fc44 100644 (file)
@@ -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
index 6ad033d..320decc 100644 (file)
@@ -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);
index d6adceb..c8a65af 100644 (file)
@@ -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