[evolution] Drop unused em_utils_get_proxy()



commit d3fdc59c401763d465f996552c02b284dc44be0b
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jul 15 18:52:50 2013 +0200

    Drop unused em_utils_get_proxy()

 mail/em-utils.c |   28 ----------------------------
 mail/em-utils.h |    2 --
 2 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 08446c1..0b65b63 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1113,34 +1113,6 @@ em_utils_selection_get_urilist (GtkSelectionData *selection_data,
 }
 
 /* ********************************************************************** */
-static EProxy *emu_proxy = NULL;
-static GMutex emu_proxy_lock;
-
-static gpointer
-emu_proxy_setup (gpointer data)
-{
-       if (!emu_proxy) {
-               emu_proxy = e_proxy_new ();
-               e_proxy_setup_proxy (emu_proxy);
-               /* not necessary to listen for changes here */
-       }
-
-       return NULL;
-}
-
-EProxy *
-em_utils_get_proxy (void)
-{
-       g_mutex_lock (&emu_proxy_lock);
-
-       if (!emu_proxy) {
-               mail_call_main (MAIL_CALL_p_p, (MailMainFunc) emu_proxy_setup, NULL);
-       }
-
-       g_mutex_unlock (&emu_proxy_lock);
-
-       return emu_proxy;
-}
 
 static gboolean
 is_only_text_part_in_this_level (GList *parts,
diff --git a/mail/em-utils.h b/mail/em-utils.h
index 4fe771a..cb71f15 100644
--- a/mail/em-utils.h
+++ b/mail/em-utils.h
@@ -60,8 +60,6 @@ void em_utils_selection_get_uidlist (GtkSelectionData *data, EMailSession *sessi
 void em_utils_selection_set_urilist (GtkSelectionData *data, CamelFolder *folder, GPtrArray *uids);
 void em_utils_selection_get_urilist (GtkSelectionData *data, CamelFolder *folder);
 
-EProxy *       em_utils_get_proxy              (void);
-
 /* FIXME: should this have an override charset? */
 gchar *                em_utils_message_to_html        (CamelSession *session,
                                                 CamelMimeMessage *msg,


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