From 2bf03e3c19c612e45fd14ba190fb3aa4431a40c8 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 30 Sep 2004 10:15:26 +0000 Subject: Remove explicit PAC autoconf call, it works perfectly ok without it. 2004-09-30 Christian Persch * configure.ac: * embed/mozilla/mozilla-notifiers.cpp: Remove explicit PAC autoconf call, it works perfectly ok without it. --- embed/mozilla/mozilla-notifiers.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'embed') diff --git a/embed/mozilla/mozilla-notifiers.cpp b/embed/mozilla/mozilla-notifiers.cpp index efb2f731d..1ddfdc69f 100644 --- a/embed/mozilla/mozilla-notifiers.cpp +++ b/embed/mozilla/mozilla-notifiers.cpp @@ -105,11 +105,6 @@ mozilla_proxy_mode_notifier (GConfClient *client, GConfEntry *entry, EphyEmbedSingle *single); static void -mozilla_proxy_autoconfig_notifier (GConfClient *client, - guint cnxn_id, - GConfEntry *entry, - EphyEmbedSingle *single); -static void mozilla_proxy_mode_notifier (GConfClient *client, guint cnxn_id, GConfEntry *entry, @@ -180,8 +175,6 @@ custom_notifiers [] = (GConfClientNotifyFunc) mozilla_language_notifier }, { CONF_NETWORK_PROXY_MODE, (GConfClientNotifyFunc) mozilla_proxy_mode_notifier }, - { CONF_NETWORK_PROXY_AUTO_URL, - (GConfClientNotifyFunc) mozilla_proxy_autoconfig_notifier }, { CONF_NETWORK_CACHE_SIZE, (GConfClientNotifyFunc) mozilla_cache_size_notifier }, { CONF_SECURITY_COOKIES_ACCEPT, @@ -355,29 +348,6 @@ mozilla_font_notifier (GConfClient *client, } } -static void -mozilla_proxy_autoconfig_notifier (GConfClient *client, - guint cnxn_id, - GConfEntry *entry, - EphyEmbedSingle *single) -{ - nsCOMPtr pps = - do_GetService ("@mozilla.org/network/protocol-proxy-service;1"); - if (!pps) return; - - char *url = eel_gconf_get_string (entry->key); - if (url && url[0] != '\0') - { -#ifdef MOZ_NSIPROTOCOLPROXYSERVICE_NSACSTRING_ - pps->ConfigureFromPAC (nsEmbedCString (url)); -#else - pps->ConfigureFromPAC (url); -#endif - } - - g_free (url); -} - static void add_notification_and_notify (GConfClient *client, const char *key, -- cgit v1.2.3