From d319184747703c98c026039aa4752bb37812328c Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sat, 16 Feb 2008 11:39:15 +0000 Subject: Remove unneeded embed list for prefs. svn path=/trunk/; revision=7951 --- embed/webkit/webkit-embed-prefs.c | 10 ---------- embed/webkit/webkit-embed-prefs.h | 1 - embed/webkit/webkit-embed.c | 11 ----------- 3 files changed, 22 deletions(-) (limited to 'embed/webkit') diff --git a/embed/webkit/webkit-embed-prefs.c b/embed/webkit/webkit-embed-prefs.c index e801e6e5b..c3fbb3e83 100644 --- a/embed/webkit/webkit-embed-prefs.c +++ b/embed/webkit/webkit-embed-prefs.c @@ -24,7 +24,6 @@ #include "eel-gconf-extensions.h" #include "ephy-embed-prefs.h" -static GSList *embeds = NULL; static WebKitWebSettings *settings = NULL; static void @@ -77,20 +76,11 @@ webkit_embed_prefs_shutdown (void) eel_gconf_notification_remove (min_font_size_cnxn_id); g_object_unref (settings); - - g_slist_free (embeds); } void webkit_embed_prefs_add_embed (WebKitEmbed *embed) { - embeds = g_slist_prepend (embeds, embed); - webkit_embed_prefs_apply (embed, settings); } -void -webkit_embed_prefs_remove_embed (WebKitEmbed *embed) -{ - embeds = g_slist_remove (embeds, embed); -} diff --git a/embed/webkit/webkit-embed-prefs.h b/embed/webkit/webkit-embed-prefs.h index 21f2bc40e..e8cf0c198 100644 --- a/embed/webkit/webkit-embed-prefs.h +++ b/embed/webkit/webkit-embed-prefs.h @@ -27,7 +27,6 @@ G_BEGIN_DECLS void webkit_embed_prefs_init (void); void webkit_embed_prefs_shutdown (void); void webkit_embed_prefs_add_embed (WebKitEmbed *embed); -void webkit_embed_prefs_remove_embed (WebKitEmbed *embed); G_END_DECLS diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c index 623d4b81d..6447f91b9 100644 --- a/embed/webkit/webkit-embed.c +++ b/embed/webkit/webkit-embed.c @@ -268,22 +268,11 @@ webkit_embed_finalize (GObject *object) G_OBJECT_CLASS (webkit_embed_parent_class)->finalize (object); } -static void -webkit_embed_dispose (GObject *object) -{ - WebKitEmbed *wembed = WEBKIT_EMBED (object); - - webkit_embed_prefs_remove_embed (wembed); - - G_OBJECT_CLASS (webkit_embed_parent_class)->dispose (object); -} - static void webkit_embed_class_init (WebKitEmbedClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); - object_class->dispose = webkit_embed_dispose; object_class->finalize = webkit_embed_finalize; g_type_class_add_private (object_class, sizeof(WebKitEmbedPrivate)); -- cgit v1.2.3