aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/mail-mt.c28
-rw-r--r--mail/mail-mt.h1
2 files changed, 0 insertions, 29 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index cbf836aa06..9cac82841d 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -318,34 +318,6 @@ mail_msg_cancel (guint msgid)
}
}
-/* waits for a message to be finished processing (freed)
- the messageid is from MailMsg->seq */
-void
-mail_msg_wait (guint msgid)
-{
- MailMsg *m;
-
- if (mail_in_main_thread ()) {
- g_mutex_lock (mail_msg_lock);
- m = g_hash_table_lookup (mail_msg_active_table, GINT_TO_POINTER (msgid));
- while (m) {
- g_mutex_unlock (mail_msg_lock);
- gtk_main_iteration ();
- g_mutex_lock (mail_msg_lock);
- m = g_hash_table_lookup (mail_msg_active_table, GINT_TO_POINTER (msgid));
- }
- g_mutex_unlock (mail_msg_lock);
- } else {
- g_mutex_lock (mail_msg_lock);
- m = g_hash_table_lookup (mail_msg_active_table, GINT_TO_POINTER (msgid));
- while (m) {
- g_cond_wait (mail_msg_cond, mail_msg_lock);
- m = g_hash_table_lookup (mail_msg_active_table, GINT_TO_POINTER (msgid));
- }
- g_mutex_unlock (mail_msg_lock);
- }
-}
-
gboolean
mail_msg_active (void)
{
diff --git a/mail/mail-mt.h b/mail/mail-mt.h
index 7a9efb94e4..e925946f0a 100644
--- a/mail/mail-mt.h
+++ b/mail/mail-mt.h
@@ -64,7 +64,6 @@ gpointer mail_msg_ref (gpointer msg);
void mail_msg_unref (gpointer msg);
void mail_msg_check_error (gpointer msg);
void mail_msg_cancel (guint msgid);
-void mail_msg_wait (guint msgid);
gboolean mail_msg_active (void);
/* dispatch a message */