-
-void
-modest_platform_connect_and_perform_if_network_account (GtkWindow *parent_window,
- TnyAccount *account,
- ModestConnectedPerformer callback,
- gpointer user_data)
-{
- if (tny_account_get_account_type (account) == TNY_ACCOUNT_TYPE_STORE) {
- if (!TNY_IS_CAMEL_POP_STORE_ACCOUNT (account) &&
- !TNY_IS_CAMEL_IMAP_STORE_ACCOUNT (account)) {
-
- /* This IS a local account like a maildir account, which does not require
- * a connection. (original comment had a vague assumption in its language
- * usage. There's no assuming needed, this IS what it IS: a local account), */
-
- /* We promise to instantly perform the callback, so ... */
- if (callback) {
- callback (FALSE, NULL, parent_window, account, user_data);
- }
-
- return;
- }
- }
-
- modest_platform_connect_and_perform (parent_window, account, callback, user_data);
-
- return;
-}
-