[evolution-data-server] Deprecate e_data_cal_report_opened().



commit 002641bcce0f5acc6f546629987b5b4b18a0559a
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Jan 29 15:56:57 2013 -0500

    Deprecate e_data_cal_report_opened().
    
    This function no longer does anything.

 calendar/libedata-cal/e-cal-backend.c              |    4 ----
 calendar/libedata-cal/e-data-cal.c                 |   12 +++---------
 calendar/libedata-cal/e-data-cal.h                 |    4 ++--
 .../libedata-cal/libedata-cal-sections.txt         |    2 +-
 4 files changed, 6 insertions(+), 16 deletions(-)
---
diff --git a/calendar/libedata-cal/e-cal-backend.c b/calendar/libedata-cal/e-cal-backend.c
index 6e06670..a2ce503 100644
--- a/calendar/libedata-cal/e-cal-backend.c
+++ b/calendar/libedata-cal/e-cal-backend.c
@@ -1924,16 +1924,12 @@ e_cal_backend_notify_opened (ECalBackend *backend,
                              GError *error)
 {
 	ECalBackendPrivate *priv;
-	GList *clients;
 
 	priv = backend->priv;
 	g_mutex_lock (&priv->clients_mutex);
 
 	priv->opened = error == NULL;
 
-	for (clients = priv->clients; clients != NULL; clients = g_list_next (clients))
-		e_data_cal_report_opened (E_DATA_CAL (clients->data), error);
-
 	g_mutex_unlock (&priv->clients_mutex);
 
 	if (error)
diff --git a/calendar/libedata-cal/e-data-cal.c b/calendar/libedata-cal/e-data-cal.c
index 49a7028..3ed1b84 100644
--- a/calendar/libedata-cal/e-data-cal.c
+++ b/calendar/libedata-cal/e-data-cal.c
@@ -1631,20 +1631,14 @@ e_data_cal_report_online (EDataCal *cal,
  * including successfull authentication to the server/storage.
  *
  * Since: 3.2
+ *
+ * Deprecated: 3.8: This function no longer does anything.
  **/
 void
 e_data_cal_report_opened (EDataCal *cal,
                           const GError *error)
 {
-	gchar **strv_error;
-
-	g_return_if_fail (E_IS_DATA_CAL (cal));
-
-	strv_error = e_gdbus_templates_encode_error (error);
-
-	e_gdbus_cal_emit_opened (cal->priv->dbus_interface, (const gchar * const *) strv_error);
-
-	g_strfreev (strv_error);
+	/* Do nothing. */
 }
 
 /**
diff --git a/calendar/libedata-cal/e-data-cal.h b/calendar/libedata-cal/e-data-cal.h
index ad9ff9d..7e46372 100644
--- a/calendar/libedata-cal/e-data-cal.h
+++ b/calendar/libedata-cal/e-data-cal.h
@@ -255,8 +255,6 @@ void		e_data_cal_report_readonly	(EDataCal *cal,
 						 gboolean is_readonly);
 void		e_data_cal_report_online	(EDataCal *cal,
 						 gboolean is_online);
-void		e_data_cal_report_opened	(EDataCal *cal,
-						 const GError *error);
 void		e_data_cal_report_free_busy_data
 						(EDataCal *cal,
 						 const GSList *freebusy);
@@ -270,6 +268,8 @@ void		e_data_cal_respond_set_backend_property
 						(EDataCal *cal,
 						 guint32 opid,
 						 GError *error);
+void		e_data_cal_report_opened	(EDataCal *cal,
+						 const GError *error);
 #endif /* EDS_DISABLE_DEPRECATED */
 
 G_END_DECLS
diff --git a/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt b/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
index 28990ce..00361e1 100644
--- a/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
+++ b/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
@@ -265,11 +265,11 @@ e_data_cal_respond_add_timezone
 e_data_cal_report_error
 e_data_cal_report_readonly
 e_data_cal_report_online
-e_data_cal_report_opened
 e_data_cal_report_free_busy_data
 e_data_cal_report_backend_property_changed
 <SUBSECTION Deprecated>
 e_data_cal_respond_set_backend_property
+e_data_cal_report_opened
 <SUBSECTION Standard>
 E_DATA_CAL
 E_IS_DATA_CAL



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