diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-07-26 08:31:30 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-07-26 08:32:04 +0800 |
commit | 77a8559d51353143992a75846cf429fdf3d769d2 (patch) | |
tree | 89289ec621dddd5cdf32002ed2b94deff624afdf | |
parent | 711c028c6daa9dfb846f86edd715e00d32407f41 (diff) | |
download | gsoc2013-evolution-77a8559d51353143992a75846cf429fdf3d769d2.tar gsoc2013-evolution-77a8559d51353143992a75846cf429fdf3d769d2.tar.gz gsoc2013-evolution-77a8559d51353143992a75846cf429fdf3d769d2.tar.bz2 gsoc2013-evolution-77a8559d51353143992a75846cf429fdf3d769d2.tar.lz gsoc2013-evolution-77a8559d51353143992a75846cf429fdf3d769d2.tar.xz gsoc2013-evolution-77a8559d51353143992a75846cf429fdf3d769d2.tar.zst gsoc2013-evolution-77a8559d51353143992a75846cf429fdf3d769d2.zip |
Remove unused mail_disconnect_store().
-rw-r--r-- | libemail-engine/mail-ops.c | 59 | ||||
-rw-r--r-- | libemail-engine/mail-ops.h | 2 |
2 files changed, 0 insertions, 61 deletions
diff --git a/libemail-engine/mail-ops.c b/libemail-engine/mail-ops.c index 008de2746a..58a90eadb2 100644 --- a/libemail-engine/mail-ops.c +++ b/libemail-engine/mail-ops.c @@ -1414,62 +1414,3 @@ mail_execute_shell_command (CamelFilterDriver *driver, g_spawn_async (NULL, argv, NULL, 0, NULL, data, NULL, NULL); } -/* ------------------------------------------------------------------------- */ - -struct _disconnect_msg { - MailMsg base; - - CamelStore *store; -}; - -static gchar * -disconnect_service_desc (struct _disconnect_msg *m) -{ - gchar *name, *res; - - name = camel_service_get_name (CAMEL_SERVICE (m->store), TRUE); - res = g_strdup_printf (_("Disconnecting %s"), name ? name : ""); - g_free (name); - - return res; -} - -static void -disconnect_service_exec (struct _disconnect_msg *m, - GCancellable *cancellable, - GError **error) -{ - camel_service_disconnect_sync ( - CAMEL_SERVICE (m->store), TRUE, cancellable, error); -} - -static void -disconnect_service_free (struct _disconnect_msg *m) -{ - g_object_unref (m->store); -} - -static MailMsgInfo disconnect_service_info = { - sizeof (struct _disconnect_msg), - (MailMsgDescFunc) disconnect_service_desc, - (MailMsgExecFunc) disconnect_service_exec, - (MailMsgDoneFunc) NULL, - (MailMsgFreeFunc) disconnect_service_free -}; - -gint -mail_disconnect_store (CamelStore *store) -{ - struct _disconnect_msg *m; - gint id; - - g_return_val_if_fail (store != NULL, -1); - - m = mail_msg_new (&disconnect_service_info); - m->store = g_object_ref (store); - - id = m->base.seq; - mail_msg_unordered_push (m); - - return id; -} diff --git a/libemail-engine/mail-ops.h b/libemail-engine/mail-ops.h index 1d9382be52..18eca7571b 100644 --- a/libemail-engine/mail-ops.h +++ b/libemail-engine/mail-ops.h @@ -97,8 +97,6 @@ void mail_filter_folder (EMailSession *session, /* filter driver execute shell command async callback */ void mail_execute_shell_command (CamelFilterDriver *driver, gint argc, gchar **argv, gpointer data); -gint mail_disconnect_store (CamelStore *store); - G_END_DECLS #endif /* MAIL_OPS_H */ |