From d3fdc59c401763d465f996552c02b284dc44be0b Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 15 Jul 2013 18:52:50 +0200 Subject: Drop unused em_utils_get_proxy() --- mail/em-utils.c | 28 ---------------------------- mail/em-utils.h | 2 -- 2 files changed, 30 deletions(-) diff --git a/mail/em-utils.c b/mail/em-utils.c index 08446c1eaf..0b65b635e1 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 4fe771a4c1..cb71f155f5 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, -- cgit v1.2.3