From cc01e6c845b27598bc6071cdf86fc9e86b775b09 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 30 Oct 2010 15:20:42 -0400 Subject: Remove an unused function. --- mail/em-subscription-editor.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'mail') diff --git a/mail/em-subscription-editor.c b/mail/em-subscription-editor.c index c040daf48e..db278b8a63 100644 --- a/mail/em-subscription-editor.c +++ b/mail/em-subscription-editor.c @@ -904,28 +904,6 @@ subscription_editor_add_account (EMSubscriptionEditor *editor, g_ptr_array_add (editor->priv->stores, data); } -static gboolean -subscription_editor_test_account (EMSubscriptionEditor *editor, - EAccount *account) -{ - CamelSession *session; - CamelStore *store; - const gchar *url; - - /* Account must be enabled. */ - if (!account->enabled) - return FALSE; - - session = em_subscription_editor_get_session (editor); - url = e_account_get_string (account, E_ACCOUNT_SOURCE_URL); - - store = (CamelStore *) camel_session_get_service ( - session, url, CAMEL_PROVIDER_STORE, NULL); - - /* Corresponding CamelStore must support subscriptions. */ - return (store != NULL) && camel_store_supports_subscriptions (store); -} - static void subscription_editor_set_account (EMSubscriptionEditor *editor, EAccount *account) -- cgit v1.2.3