aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-single.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2013-02-15 01:55:15 +0800
committerXan Lopez <xan@igalia.com>2013-02-15 01:55:15 +0800
commitc410e9d9683b3b7b8da7f92adcaf8332e900caad (patch)
tree9eb74d7aac6f0e53d2543d16fd3c35d9b415d0a1 /embed/ephy-embed-single.c
parentd3cf3f551911c51f6bd488cdbf49bfa8d1dcdfe8 (diff)
downloadgsoc2013-epiphany-c410e9d9683b3b7b8da7f92adcaf8332e900caad.tar
gsoc2013-epiphany-c410e9d9683b3b7b8da7f92adcaf8332e900caad.tar.gz
gsoc2013-epiphany-c410e9d9683b3b7b8da7f92adcaf8332e900caad.tar.bz2
gsoc2013-epiphany-c410e9d9683b3b7b8da7f92adcaf8332e900caad.tar.lz
gsoc2013-epiphany-c410e9d9683b3b7b8da7f92adcaf8332e900caad.tar.xz
gsoc2013-epiphany-c410e9d9683b3b7b8da7f92adcaf8332e900caad.tar.zst
gsoc2013-epiphany-c410e9d9683b3b7b8da7f92adcaf8332e900caad.zip
Remove EphyPermissionManager
This was also a no-op. The only thing the popup code is doing is checking the GSetting, so just do that.
Diffstat (limited to 'embed/ephy-embed-single.c')
-rw-r--r--embed/ephy-embed-single.c55
1 files changed, 1 insertions, 54 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index 190beaeec..35e57b9de 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -27,7 +27,6 @@
#include "ephy-embed-shell.h"
#include "ephy-embed-type-builtins.h"
#include "ephy-file-helpers.h"
-#include "ephy-permission-manager.h"
#include "ephy-prefs.h"
#include "ephy-profile-utils.h"
#include "ephy-request-about.h"
@@ -54,11 +53,7 @@ struct _EphyEmbedSinglePrivate {
#endif
};
-static void ephy_permission_manager_iface_init (EphyPermissionManagerIface *iface);
-
-G_DEFINE_TYPE_WITH_CODE (EphyEmbedSingle, ephy_embed_single, G_TYPE_OBJECT,
- G_IMPLEMENT_INTERFACE (EPHY_TYPE_PERMISSION_MANAGER,
- ephy_permission_manager_iface_init))
+G_DEFINE_TYPE (EphyEmbedSingle, ephy_embed_single, G_TYPE_OBJECT)
static void
form_auth_data_free (EphyEmbedSingleFormAuthData *data)
@@ -233,54 +228,6 @@ ephy_embed_single_class_init (EphyEmbedSingleClass *klass)
g_type_class_add_private (object_class, sizeof (EphyEmbedSinglePrivate));
}
-static void
-impl_permission_manager_add (EphyPermissionManager *manager,
- const char *host,
- const char *type,
- EphyPermission permission)
-{
-}
-
-static void
-impl_permission_manager_remove (EphyPermissionManager *manager,
- const char *host,
- const char *type)
-{
-}
-
-static void
-impl_permission_manager_clear (EphyPermissionManager *manager)
-{
-}
-
-static EphyPermission
-impl_permission_manager_test (EphyPermissionManager *manager,
- const char *host,
- const char *type)
-{
- g_return_val_if_fail (type != NULL && type[0] != '\0', EPHY_PERMISSION_DEFAULT);
-
- return (EphyPermission)0;
-}
-
-static GList *
-impl_permission_manager_list (EphyPermissionManager *manager,
- const char *type)
-{
- GList *list = NULL;
- return list;
-}
-
-static void
-ephy_permission_manager_iface_init (EphyPermissionManagerIface *iface)
-{
- iface->add = impl_permission_manager_add;
- iface->remove = impl_permission_manager_remove;
- iface->clear = impl_permission_manager_clear;
- iface->test = impl_permission_manager_test;
- iface->list = impl_permission_manager_list;
-}
-
#ifndef HAVE_WEBKIT2
static void
cache_size_cb (GSettings *settings,