Deprecate e_data_book_report_opened().
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 29 Jan 2013 20:46:42 +0000 (15:46 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Tue, 29 Jan 2013 21:46:56 +0000 (16:46 -0500)
This function no longer does anything.

addressbook/libedata-book/e-book-backend.c
addressbook/libedata-book/e-data-book.c
addressbook/libedata-book/e-data-book.h
docs/reference/addressbook/libedata-book/libedata-book-sections.txt

index e03b1a5..948dca1 100644 (file)
@@ -1323,16 +1323,12 @@ e_book_backend_notify_opened (EBookBackend *backend,
                               GError *error)
 {
        EBookBackendPrivate *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_book_report_opened (E_DATA_BOOK (clients->data), error);
-
        g_mutex_unlock (&priv->clients_mutex);
 
        if (error)
index f242967..372647f 100644 (file)
@@ -1234,20 +1234,14 @@ e_data_book_report_online (EDataBook *book,
  * including successfull authentication to the server/storage.
  *
  * Since: 3.2
+ *
+ * Deprecated: 3.8: This function no longer does anything.
  **/
 void
 e_data_book_report_opened (EDataBook *book,
                            const GError *error)
 {
-       gchar **strv_error;
-
-       g_return_if_fail (E_IS_DATA_BOOK (book));
-
-       strv_error = e_gdbus_templates_encode_error (error);
-
-       e_gdbus_book_emit_opened (book->priv->dbus_interface, (const gchar * const *) strv_error);
-
-       g_strfreev (strv_error);
+       /* Do nothing. */
 }
 
 /**
index 7ca9c20..a1b7b7a 100644 (file)
@@ -199,8 +199,6 @@ void                e_data_book_report_readonly     (EDataBook *book,
                                                 gboolean readonly);
 void           e_data_book_report_online       (EDataBook *book,
                                                 gboolean is_online);
-void           e_data_book_report_opened       (EDataBook *book,
-                                                const GError *error);
 void           e_data_book_report_backend_property_changed
                                                (EDataBook *book,
                                                 const gchar *prop_name,
@@ -214,6 +212,8 @@ void                e_data_book_respond_set_backend_property
                                                (EDataBook *book,
                                                 guint32 opid,
                                                 GError *error);
+void           e_data_book_report_opened       (EDataBook *book,
+                                                const GError *error);
 #endif /* EDS_DISABLE_DEPRECATED */
 
 G_END_DECLS
index b4030df..387d5b7 100644 (file)
@@ -283,11 +283,11 @@ e_data_book_respond_get_contact_list_uids
 e_data_book_report_error
 e_data_book_report_readonly
 e_data_book_report_online
-e_data_book_report_opened
 e_data_book_report_backend_property_changed
 e_data_book_string_slist_to_comma_string
 <SUBSECTION Deprecated>
 e_data_book_respond_set_backend_property
+e_data_book_report_opened
 <SUBSECTION Standard>
 E_DATA_BOOK
 E_IS_DATA_BOOK