diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-11-01 01:25:46 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-11-01 01:25:46 +0800 |
commit | 4c68191be1a38d053a4389e133c6b0f099468de4 (patch) | |
tree | 3564cdc06f78d9d6862bfb894c369ceb8f8d4c42 /mail | |
parent | d6dfc4fa32b9088f8509e36b5faaa4c9bad99fb8 (diff) | |
download | gsoc2013-evolution-4c68191be1a38d053a4389e133c6b0f099468de4.tar.gz gsoc2013-evolution-4c68191be1a38d053a4389e133c6b0f099468de4.tar.zst gsoc2013-evolution-4c68191be1a38d053a4389e133c6b0f099468de4.zip |
Kill mail_get_messagex().
Use camel_folder_get_message() instead.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mail-ops.c | 55 | ||||
-rw-r--r-- | mail/mail-ops.h | 5 |
2 files changed, 0 insertions, 60 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index ccbd934fe7..af045c6bb8 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -2104,61 +2104,6 @@ mail_get_message (CamelFolder *folder, const gchar *uid, void (*done) (CamelFold return id; } -typedef void (*get_done)(CamelFolder *folder, const gchar *uid, CamelMimeMessage *msg, gpointer data, GError **error); - -static void -get_messagex_done (struct _get_message_msg *m) -{ - get_done done; - - if (!m->done) - return; - - if (camel_operation_cancel_check (CAMEL_OPERATION (m->cancellable))) - return; - - done = (get_done)m->done; - done (m->folder, m->uid, m->message, m->data, &m->base.error); -} - -static MailMsgInfo get_messagex_info = { - sizeof (struct _get_message_msg), - (MailMsgDescFunc) get_message_desc, - (MailMsgExecFunc) get_message_exec, - (MailMsgDoneFunc) get_messagex_done, - (MailMsgFreeFunc) get_message_free -}; - -/* This is temporary, to avoid having to rewrite everything that uses - mail_get_message; it adds an exception argument to the callback */ -gint -mail_get_messagex (CamelFolder *folder, - const gchar *uid, - void (*done) (CamelFolder *folder, - const gchar *uid, - CamelMimeMessage *msg, - gpointer data, - GError **error), - gpointer data, - MailMsgDispatchFunc dispatch) -{ - struct _get_message_msg *m; - gint id; - - m = mail_msg_new (&get_messagex_info); - m->folder = folder; - g_object_ref (folder); - m->uid = g_strdup (uid); - m->data = data; - m->done = (void (*) (CamelFolder *, const gchar *, CamelMimeMessage *, gpointer )) done; - m->cancellable = camel_operation_new (); - id = m->base.seq; - - dispatch (m); - - return id; -} - /* ********************************************************************** */ struct _get_messages_msg { diff --git a/mail/mail-ops.h b/mail/mail-ops.h index 583c18e34f..faeae3591b 100644 --- a/mail/mail-ops.h +++ b/mail/mail-ops.h @@ -47,11 +47,6 @@ gint mail_get_message (CamelFolder *folder, const gchar *uid, gpointer data, MailMsgDispatchFunc dispatch); -gint -mail_get_messagex (CamelFolder *folder, const gchar *uid, - void (*done) (CamelFolder *folder, const gchar *uid, CamelMimeMessage *msg, gpointer data, GError **error), - gpointer data, MailMsgDispatchFunc dispatch); - /* get several messages */ gint mail_get_messages (CamelFolder *folder, GPtrArray *uids, void (*done) (CamelFolder *folder, GPtrArray *uids, GPtrArray *msgs, gpointer data), |