[evolution-data-server] Remove e_cal_backend_set_notification_proxy().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove e_cal_backend_set_notification_proxy().
- Date: Tue, 26 Mar 2013 16:08:52 +0000 (UTC)
commit d1d1d0413e28156d4cda072491a55aebfc8c9267
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Mar 26 12:06:40 2013 -0400
Remove e_cal_backend_set_notification_proxy().
This is some kind of ancient relic whose purpose is unclear.
Seems to predate the Evolution / Evolution-Data-Server split circa 2003.
None of the current E-D-S backends use it, nor even evolution-groupwise.
calendar/libedata-cal/e-cal-backend.c | 41 --------------------
calendar/libedata-cal/e-cal-backend.h | 4 --
.../libedata-cal/libedata-cal-sections.txt | 1 -
3 files changed, 0 insertions(+), 46 deletions(-)
---
diff --git a/calendar/libedata-cal/e-cal-backend.c b/calendar/libedata-cal/e-cal-backend.c
index 6f6ee5c..d4f3894 100644
--- a/calendar/libedata-cal/e-cal-backend.c
+++ b/calendar/libedata-cal/e-cal-backend.c
@@ -56,9 +56,6 @@ struct _ECalBackendPrivate {
GHashTable *zone_cache;
GMutex zone_cache_lock;
-
- /* ECalBackend to pass notifications on to */
- ECalBackend *notification_proxy;
};
struct _SignalClosure {
@@ -1072,24 +1069,6 @@ e_cal_backend_list_views (ECalBackend *backend)
}
/**
- * e_cal_backend_set_notification_proxy:
- * @backend: an #ECalBackend
- * @proxy: The calendar backend to act as notification proxy.
- *
- * Sets the backend that will act as notification proxy for the given backend.
- *
- * Since: 3.2
- */
-void
-e_cal_backend_set_notification_proxy (ECalBackend *backend,
- ECalBackend *proxy)
-{
- g_return_if_fail (E_IS_CAL_BACKEND (backend));
-
- backend->priv->notification_proxy = proxy;
-}
-
-/**
* e_cal_backend_open:
* @backend: an #ECalBackend
* @cal: an #EDataCal
@@ -1644,12 +1623,6 @@ e_cal_backend_notify_component_created (ECalBackend *backend,
g_return_if_fail (E_IS_CAL_BACKEND (backend));
g_return_if_fail (E_IS_CAL_COMPONENT (component));
- if (backend->priv->notification_proxy != NULL) {
- e_cal_backend_notify_component_created (
- backend->priv->notification_proxy, component);
- return;
- }
-
list = e_cal_backend_list_views (backend);
for (link = list; link != NULL; link = g_list_next (link)) {
@@ -1714,13 +1687,6 @@ e_cal_backend_notify_component_modified (ECalBackend *backend,
g_return_if_fail (E_IS_CAL_COMPONENT (old_component));
g_return_if_fail (E_IS_CAL_COMPONENT (new_component));
- if (backend->priv->notification_proxy != NULL) {
- e_cal_backend_notify_component_modified (
- backend->priv->notification_proxy,
- old_component, new_component);
- return;
- }
-
list = e_cal_backend_list_views (backend);
for (link = list; link != NULL; link = g_list_next (link))
@@ -1766,13 +1732,6 @@ e_cal_backend_notify_component_removed (ECalBackend *backend,
if (new_component != NULL)
g_return_if_fail (E_IS_CAL_COMPONENT (new_component));
- if (backend->priv->notification_proxy != NULL) {
- e_cal_backend_notify_component_removed (
- backend->priv->notification_proxy,
- id, old_component, new_component);
- return;
- }
-
list = e_cal_backend_list_views (backend);
for (link = list; link != NULL; link = g_list_next (link)) {
diff --git a/calendar/libedata-cal/e-cal-backend.h b/calendar/libedata-cal/e-cal-backend.h
index 3e44dac..358b4c2 100644
--- a/calendar/libedata-cal/e-cal-backend.h
+++ b/calendar/libedata-cal/e-cal-backend.h
@@ -275,10 +275,6 @@ void e_cal_backend_remove_view (ECalBackend *backend,
EDataCalView *view);
GList * e_cal_backend_list_views (ECalBackend *backend);
-void e_cal_backend_set_notification_proxy
- (ECalBackend *backend,
- ECalBackend *proxy);
-
void e_cal_backend_get_backend_property
(ECalBackend *backend,
EDataCal *cal,
diff --git a/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
b/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
index bad3f89..2b34cfd 100644
--- a/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
+++ b/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
@@ -25,7 +25,6 @@ e_cal_backend_create_cache_filename
e_cal_backend_add_view
e_cal_backend_remove_view
e_cal_backend_list_views
-e_cal_backend_set_notification_proxy
e_cal_backend_get_backend_property
e_cal_backend_open
e_cal_backend_refresh
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]