aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-mt.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-10-24 19:04:22 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-10-27 21:25:00 +0800
commit4370d47c8b50a04e5564577c2a980a368bd4d1d3 (patch)
tree7c80c06f4f8e0630dbbdc8f70e15b6b9eab97a01 /mail/mail-mt.c
parenta09f5534586962fe64f4d556839265f55ad5e8ec (diff)
downloadgsoc2013-evolution-4370d47c8b50a04e5564577c2a980a368bd4d1d3.tar
gsoc2013-evolution-4370d47c8b50a04e5564577c2a980a368bd4d1d3.tar.gz
gsoc2013-evolution-4370d47c8b50a04e5564577c2a980a368bd4d1d3.tar.bz2
gsoc2013-evolution-4370d47c8b50a04e5564577c2a980a368bd4d1d3.tar.lz
gsoc2013-evolution-4370d47c8b50a04e5564577c2a980a368bd4d1d3.tar.xz
gsoc2013-evolution-4370d47c8b50a04e5564577c2a980a368bd4d1d3.tar.zst
gsoc2013-evolution-4370d47c8b50a04e5564577c2a980a368bd4d1d3.zip
Remove some unfinished / unwanted bits from mail-mt.
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r--mail/mail-mt.c68
1 files changed, 1 insertions, 67 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index aa7f5727e5..d3d1aa3737 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -46,7 +46,6 @@
/*#define MALLOC_CHECK*/
#define d(x)
-static void set_stop(gint sensitive);
static void mail_operation_status(CamelOperation *op, const gchar *what, gint pc, gpointer data);
/* background operation status stuff */
@@ -462,11 +461,8 @@ mail_msg_proxy (MailMsg *msg)
g_free (text);
}
- if (msg->info->exec != NULL) {
- mail_enable_stop ();
+ if (msg->info->exec != NULL)
msg->info->exec (msg);
- mail_disable_stop ();
- }
if (msg->info->desc != NULL && msg->cancel) {
camel_operation_end (msg->cancel);
@@ -819,55 +815,6 @@ mail_call_main (mail_call_t type, MailMainFunc func, ...)
return ret;
}
-/* ********************************************************************** */
-/* locked via status_lock */
-static gint busy_state;
-G_LOCK_DEFINE_STATIC (busy_state);
-
-static void
-do_set_busy(MailMsg *mm)
-{
- set_stop(busy_state > 0);
-}
-
-static MailMsgInfo set_busy_info = {
- sizeof (MailMsg),
- (MailMsgDescFunc) NULL,
- (MailMsgExecFunc) do_set_busy,
- (MailMsgDoneFunc) NULL,
- (MailMsgFreeFunc) NULL
-};
-
-void mail_enable_stop(void)
-{
- MailMsg *m;
-
- G_LOCK (busy_state);
-
- busy_state++;
- if (busy_state == 1) {
- m = mail_msg_new(&set_busy_info);
- mail_msg_main_loop_push(m);
- }
-
- G_UNLOCK (busy_state);
-}
-
-void mail_disable_stop(void)
-{
- MailMsg *m;
-
- G_LOCK (busy_state);
-
- busy_state--;
- if (busy_state == 0) {
- m = mail_msg_new(&set_busy_info);
- mail_msg_main_loop_push(m);
- }
-
- G_UNLOCK (busy_state);
-}
-
/* ******************************************************************************** */
struct _op_status_msg {
@@ -1019,16 +966,3 @@ mail_operation_status (CamelOperation *op, const gchar *what, gint pc, gpointer
m->data = data;
mail_msg_main_loop_push(m);
}
-
-/* ******************** */
-
-static void
-set_stop (gint sensitive)
-{
- static gint last = FALSE;
-
- if (last == sensitive)
- return;
-
- last = sensitive;
-}