[evolution] Remove unused mail_cancel_hook_add().



commit 19991bcbd02b9f4fb877ee81c18ddfd85706e9fa
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Nov 27 10:23:45 2013 -0500

    Remove unused mail_cancel_hook_add().

 .../evolution-mail-engine-sections.txt             |    1 -
 libemail-engine/mail-mt.c                          |   22 --------------------
 libemail-engine/mail-mt.h                          |    1 -
 3 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/doc/reference/evolution-mail-engine/evolution-mail-engine-sections.txt 
b/doc/reference/evolution-mail-engine/evolution-mail-engine-sections.txt
index 4eae9c7..2baea01 100644
--- a/doc/reference/evolution-mail-engine/evolution-mail-engine-sections.txt
+++ b/doc/reference/evolution-mail-engine/evolution-mail-engine-sections.txt
@@ -363,7 +363,6 @@ mail_msg_main_loop_push
 mail_msg_unordered_push
 mail_msg_fast_ordered_push
 mail_msg_slow_ordered_push
-mail_cancel_hook_add
 mail_cancel_hook_remove
 mail_cancel_all
 mail_get_password
diff --git a/libemail-engine/mail-mt.c b/libemail-engine/mail-mt.c
index 96f8e72..c54ac39 100644
--- a/libemail-engine/mail-mt.c
+++ b/libemail-engine/mail-mt.c
@@ -308,28 +308,6 @@ mail_msg_active (void)
 
 static GHookList cancel_hook_list;
 
-GHook *
-mail_cancel_hook_add (GHookFunc func,
-                      gpointer data)
-{
-       GHook *hook;
-
-       g_mutex_lock (&mail_msg_lock);
-
-       if (!cancel_hook_list.is_setup)
-               g_hook_list_init (&cancel_hook_list, sizeof (GHook));
-
-       hook = g_hook_alloc (&cancel_hook_list);
-       hook->func = func;
-       hook->data = data;
-
-       g_hook_append (&cancel_hook_list, hook);
-
-       g_mutex_unlock (&mail_msg_lock);
-
-       return hook;
-}
-
 void
 mail_cancel_hook_remove (GHook *hook)
 {
diff --git a/libemail-engine/mail-mt.h b/libemail-engine/mail-mt.h
index 4af3344..32a8d96 100644
--- a/libemail-engine/mail-mt.h
+++ b/libemail-engine/mail-mt.h
@@ -100,7 +100,6 @@ void mail_msg_fast_ordered_push (gpointer msg);
 void mail_msg_slow_ordered_push (gpointer msg);
 
 /* To implement the stop button */
-GHook * mail_cancel_hook_add (GHookFunc func, gpointer data);
 void mail_cancel_hook_remove (GHook *hook);
 void mail_cancel_all (void);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]