diff options
Diffstat (limited to 'embed/webkit')
-rw-r--r-- | embed/webkit/webkit-embed-prefs.c | 10 | ||||
-rw-r--r-- | embed/webkit/webkit-embed-prefs.h | 1 | ||||
-rw-r--r-- | embed/webkit/webkit-embed.c | 11 |
3 files changed, 0 insertions, 22 deletions
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 @@ -269,21 +269,10 @@ webkit_embed_finalize (GObject *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)); |