From 9c54a252230ceaf38a3accd5504b3e4bd5959c48 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Tue, 2 Oct 2012 22:00:09 +0200 Subject: adblock: get rid of AdBlock interface No need for this now, just make EphyAdBlock a concrete class implementing the adblock functionality. https://bugzilla.gnome.org/show_bug.cgi?id=681657 --- src/ephy-shell.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src') diff --git a/src/ephy-shell.c b/src/ephy-shell.c index e88e9a086..7dda80ad3 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -23,7 +23,6 @@ #include "config.h" #include "ephy-shell.h" -#include "ephy-adblock-extension.h" #include "ephy-adblock-manager.h" #include "ephy-bookmarks-editor.h" #include "ephy-bookmarks-import.h" @@ -1057,8 +1056,6 @@ ephy_shell_get_prefs_dialog (EphyShell *shell) void _ephy_shell_create_instance (EphyEmbedShellMode mode) { - EphyAdBlockManager *adblock_manager; - g_assert (ephy_shell == NULL); ephy_shell = EPHY_SHELL (g_object_new (EPHY_TYPE_SHELL, @@ -1067,11 +1064,6 @@ _ephy_shell_create_instance (EphyEmbedShellMode mode) NULL)); /* FIXME weak ref */ g_assert (ephy_shell != NULL); - - /* FIXME not the best place to have this */ - adblock_manager = EPHY_ADBLOCK_MANAGER (ephy_embed_shell_get_adblock_manager (embed_shell)); - ephy_adblock_manager_set_blocker (adblock_manager, - g_object_new (EPHY_TYPE_ADBLOCK_EXTENSION, NULL)); } /** -- cgit v1.2.3