From 67b6bfaa168281fa2906232f70ba8ee1a1c882ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Rameau?= Date: Wed, 21 Sep 2005 21:07:42 +0000 Subject: Remove unused function. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2005-09-21 Jean-François Rameau * embed/mozilla/mozilla-embed-single.cpp: (have_gnome_url_handler): Remove unused function. --- ChangeLog | 6 ++++++ embed/mozilla/mozilla-embed-single.cpp | 25 ------------------------- 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/ChangeLog b/ChangeLog index ee92c5a0f..d40445e5c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-09-21 Jean-François Rameau + + * embed/mozilla/mozilla-embed-single.cpp: (have_gnome_url_handler): + + Remove unused function. + 2005-09-21 Christian Persch * lib/ephy-gui.c: diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index 507291a4b..34cc1f0d5 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -113,7 +113,6 @@ static void ephy_cookie_manager_iface_init (EphyCookieManagerIface *iface); static void ephy_password_manager_iface_init (EphyPasswordManagerIface *iface); static void ephy_permission_manager_iface_init (EphyPermissionManagerIface *iface); static void mozilla_embed_single_init (MozillaEmbedSingle *ges); -static gboolean have_gnome_url_handler (const gchar *protocol); static GObjectClass *parent_class = NULL; @@ -403,30 +402,6 @@ mozilla_init_profile (void) g_free (profile_path); } -static gboolean -have_gnome_url_handler (const gchar *protocol) -{ - gchar *key, *cmd; - gboolean rv; - - key = g_strdup_printf ("/desktop/gnome/url-handlers/%s/command", - protocol); - cmd = eel_gconf_get_string (key); - g_free (key); - - rv = (cmd != NULL && strstr (cmd, "epiphany") == NULL); - g_free (cmd); - - if (!rv) return rv; - - key = g_strdup_printf ("/desktop/gnome/url-handlers/%s/enabled", - protocol); - rv = eel_gconf_get_boolean (key); - g_free (key); - - return rv; -} - #if defined(MOZ_NSIXULCHROMEREGISTRY_SELECTSKIN) || defined(HAVE_CHROME_NSICHROMEREGISTRYSEA_H) static nsresult getUILang (nsAString& aUILang) -- cgit v1.2.3