From 8ae3cc32830179e0937b315d673d11a17658e7ac Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 27 Nov 2013 10:28:55 -0500 Subject: Remove mail_cancel_all(). Turns out this function was a no-op, because nothing registered itself to be cancelled this way. This was part of the legacy async framework, which we've mostly moved away from now. --- libemail-engine/mail-mt.c | 15 --------------- libemail-engine/mail-mt.h | 3 --- 2 files changed, 18 deletions(-) (limited to 'libemail-engine') diff --git a/libemail-engine/mail-mt.c b/libemail-engine/mail-mt.c index 26c4592c02..0999c31df8 100644 --- a/libemail-engine/mail-mt.c +++ b/libemail-engine/mail-mt.c @@ -306,21 +306,6 @@ mail_msg_active (void) /* **************************************** */ -static GHookList cancel_hook_list; - -void -mail_cancel_all (void) -{ - camel_operation_cancel_all (); - - g_mutex_lock (&mail_msg_lock); - - if (cancel_hook_list.is_setup) - g_hook_list_invoke (&cancel_hook_list, FALSE); - - g_mutex_unlock (&mail_msg_lock); -} - static guint idle_source_id = 0; G_LOCK_DEFINE_STATIC (idle_source_id); static GAsyncQueue *main_loop_queue = NULL; diff --git a/libemail-engine/mail-mt.h b/libemail-engine/mail-mt.h index 8ac8b8c293..b8c9923b04 100644 --- a/libemail-engine/mail-mt.h +++ b/libemail-engine/mail-mt.h @@ -99,9 +99,6 @@ void mail_msg_unordered_push (gpointer msg); void mail_msg_fast_ordered_push (gpointer msg); void mail_msg_slow_ordered_push (gpointer msg); -/* To implement the stop button */ -void mail_cancel_all (void); - /* Call a function in the GUI thread, wait for it to return, type is * the marshaller to use. FIXME This thing is horrible, please put * it out of its misery. */ -- cgit v1.2.3