aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-29 10:17:27 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-29 10:18:52 +0800
commitad896234368159eccb0067044c9381589ab32ebe (patch)
tree4f57aaca5e7e5f5ad4cab22838ef05f82eaa3d9a
parent3fc0de639b3c1c3dbf91ded59fa365765af7e88e (diff)
downloadgsoc2013-evolution-ad896234368159eccb0067044c9381589ab32ebe.tar
gsoc2013-evolution-ad896234368159eccb0067044c9381589ab32ebe.tar.gz
gsoc2013-evolution-ad896234368159eccb0067044c9381589ab32ebe.tar.bz2
gsoc2013-evolution-ad896234368159eccb0067044c9381589ab32ebe.tar.lz
gsoc2013-evolution-ad896234368159eccb0067044c9381589ab32ebe.tar.xz
gsoc2013-evolution-ad896234368159eccb0067044c9381589ab32ebe.tar.zst
gsoc2013-evolution-ad896234368159eccb0067044c9381589ab32ebe.zip
Remove e_get_subscribable_accounts().
Another EAccount utility function down...
-rw-r--r--doc/reference/shell/eshell-sections.txt1
-rw-r--r--doc/reference/shell/tmpl/e-account-utils.sgml9
-rw-r--r--e-util/e-account-utils.c53
-rw-r--r--e-util/e-account-utils.h1
4 files changed, 0 insertions, 64 deletions
diff --git a/doc/reference/shell/eshell-sections.txt b/doc/reference/shell/eshell-sections.txt
index d9d04fba59..4328afa1b2 100644
--- a/doc/reference/shell/eshell-sections.txt
+++ b/doc/reference/shell/eshell-sections.txt
@@ -436,7 +436,6 @@ e_get_account_by_name
e_get_account_by_uid
e_get_any_enabled_account
e_get_default_transport
-e_get_subscribable_accounts
</SECTION>
<SECTION>
diff --git a/doc/reference/shell/tmpl/e-account-utils.sgml b/doc/reference/shell/tmpl/e-account-utils.sgml
index 2a069953d4..8aa329aa35 100644
--- a/doc/reference/shell/tmpl/e-account-utils.sgml
+++ b/doc/reference/shell/tmpl/e-account-utils.sgml
@@ -82,12 +82,3 @@ Mail Accounts
@Returns:
-<!-- ##### FUNCTION e_get_subscribable_accounts ##### -->
-<para>
-
-</para>
-
-@session:
-@Returns:
-
-
diff --git a/e-util/e-account-utils.c b/e-util/e-account-utils.c
index ec733ed103..6e64d45747 100644
--- a/e-util/e-account-utils.c
+++ b/e-util/e-account-utils.c
@@ -250,56 +250,3 @@ e_get_default_transport (void)
return NULL;
}
-/**
- * e_get_subscribable_accounts:
- * @session: a #CamelSession
- *
- * Returns a list of enabled accounts that support folder subscriptions.
- * The #EAccount objects are not referenced, but the list itself should
- * be should be freed with g_list_free().
- *
- * Returns: a list of #EAccount objects
- **/
-GList *
-e_get_subscribable_accounts (CamelSession *session)
-{
- EAccountList *account_list;
- EAccount *account;
- EIterator *iterator;
- GList *subscribable = NULL;
-
- g_return_val_if_fail (CAMEL_IS_SESSION (session), NULL);
-
- account_list = e_get_account_list ();
- iterator = e_list_get_iterator (E_LIST (account_list));
-
- while (e_iterator_is_valid (iterator)) {
- CamelStore *store = NULL;
-
- /* XXX EIterator misuses const. */
- account = (EAccount *) e_iterator_get (iterator);
-
- if (account->enabled) {
- CamelService *service;
-
- service = camel_session_get_service (
- session, account->uid);
- if (CAMEL_IS_STORE (service))
- store = CAMEL_STORE (service);
- }
-
- e_iterator_next (iterator);
-
- if (store == NULL)
- continue;
-
- if (!camel_store_supports_subscriptions (store))
- continue;
-
- subscribable = g_list_prepend (subscribable, account);
- }
-
- g_object_unref (iterator);
-
- return g_list_reverse (subscribable);
-}
diff --git a/e-util/e-account-utils.h b/e-util/e-account-utils.h
index 41abcddf4d..d7dbd283fd 100644
--- a/e-util/e-account-utils.h
+++ b/e-util/e-account-utils.h
@@ -31,7 +31,6 @@ EAccount * e_get_account_by_name (const gchar *name);
EAccount * e_get_account_by_uid (const gchar *uid);
EAccount * e_get_any_enabled_account (void);
EAccount * e_get_default_transport (void);
-GList * e_get_subscribable_accounts (CamelSession *session);
G_END_DECLS