diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-03 04:09:12 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:05 +0800 |
commit | 96ac55771668937f146b3525d35438f8a9e0da66 (patch) | |
tree | cd8b18280a69b6f1890174ab2fd7efb82d92478f | |
parent | dc1f9544c4b68f2fb40a3d1482f5295754b56e66 (diff) | |
download | gsoc2013-evolution-96ac55771668937f146b3525d35438f8a9e0da66.tar gsoc2013-evolution-96ac55771668937f146b3525d35438f8a9e0da66.tar.gz gsoc2013-evolution-96ac55771668937f146b3525d35438f8a9e0da66.tar.bz2 gsoc2013-evolution-96ac55771668937f146b3525d35438f8a9e0da66.tar.lz gsoc2013-evolution-96ac55771668937f146b3525d35438f8a9e0da66.tar.xz gsoc2013-evolution-96ac55771668937f146b3525d35438f8a9e0da66.tar.zst gsoc2013-evolution-96ac55771668937f146b3525d35438f8a9e0da66.zip |
Remove e_get_account_by_transport_url().
Function is no longer used, or wanted.
-rw-r--r-- | doc/reference/shell/eshell-sections.txt | 1 | ||||
-rw-r--r-- | doc/reference/shell/tmpl/e-account-utils.sgml | 9 | ||||
-rw-r--r-- | e-util/e-account-utils.c | 58 | ||||
-rw-r--r-- | e-util/e-account-utils.h | 1 |
4 files changed, 0 insertions, 69 deletions
diff --git a/doc/reference/shell/eshell-sections.txt b/doc/reference/shell/eshell-sections.txt index 5d9402fafc..f5b389ca84 100644 --- a/doc/reference/shell/eshell-sections.txt +++ b/doc/reference/shell/eshell-sections.txt @@ -435,7 +435,6 @@ e_set_default_account e_get_account_by_name e_get_account_by_uid e_get_account_by_source_url -e_get_account_by_transport_url e_get_any_enabled_account e_get_default_transport e_get_subscribable_accounts diff --git a/doc/reference/shell/tmpl/e-account-utils.sgml b/doc/reference/shell/tmpl/e-account-utils.sgml index dae48fdc9e..c8b80e9010 100644 --- a/doc/reference/shell/tmpl/e-account-utils.sgml +++ b/doc/reference/shell/tmpl/e-account-utils.sgml @@ -73,15 +73,6 @@ Mail Accounts @Returns: -<!-- ##### FUNCTION e_get_account_by_transport_url ##### --> -<para> - -</para> - -@transport_url: -@Returns: - - <!-- ##### FUNCTION e_get_any_enabled_account ##### --> <para> diff --git a/e-util/e-account-utils.c b/e-util/e-account-utils.c index aedf4f1c29..636dea7426 100644 --- a/e-util/e-account-utils.c +++ b/e-util/e-account-utils.c @@ -234,64 +234,6 @@ e_get_account_by_source_url (const gchar *source_url) } /** - * e_get_account_by_transport_url: - * @transport_url: a transport URL - * - * Returns the #EAccount with the given transport URL, or %NULL if no - * such account exists. - * - * Returns: an #EAccount having the given transport URL, or %NULL - **/ -EAccount * -e_get_account_by_transport_url (const gchar *transport_url) -{ - EAccountList *account_list; - EAccount *account = NULL; - EIterator *iterator; - CamelProvider *provider; - CamelURL *transport_curl; - - g_return_val_if_fail (transport_url != NULL, NULL); - - transport_curl = camel_url_new (transport_url, NULL); - g_return_val_if_fail (transport_curl != NULL, NULL); - - provider = camel_provider_get (transport_url, NULL); - g_return_val_if_fail (provider != NULL, NULL); - g_return_val_if_fail (provider->url_equal != NULL, NULL); - - account_list = e_get_account_list (); - iterator = e_list_get_iterator (E_LIST (account_list)); - - while (account == NULL && e_iterator_is_valid (iterator)) { - EAccount *candidate; - CamelURL *curl; - - /* XXX EIterator misuses const. */ - candidate = (EAccount *) e_iterator_get (iterator); - - e_iterator_next (iterator); - - if (!account_has_transport_url (candidate)) - continue; - - curl = camel_url_new (candidate->transport->url, NULL); - if (curl == NULL) - continue; - - if (provider->url_equal (curl, transport_curl)) - account = candidate; - - camel_url_free (curl); - } - - g_object_unref (iterator); - camel_url_free (transport_curl); - - return account; -} - -/** * e_get_any_enabled_account: * * Returns the default mail account if it's enabled, otherwise the first diff --git a/e-util/e-account-utils.h b/e-util/e-account-utils.h index ae148cdb36..d5a4625ecb 100644 --- a/e-util/e-account-utils.h +++ b/e-util/e-account-utils.h @@ -30,7 +30,6 @@ void e_set_default_account (EAccount *account); EAccount * e_get_account_by_name (const gchar *name); EAccount * e_get_account_by_uid (const gchar *uid); EAccount * e_get_account_by_source_url (const gchar *source_url); -EAccount * e_get_account_by_transport_url (const gchar *transport_url); EAccount * e_get_any_enabled_account (void); EAccount * e_get_default_transport (void); GList * e_get_subscribable_accounts (CamelSession *session); |