aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-single.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-03-14 21:18:36 +0800
committerXan Lopez <xan@igalia.com>2012-03-14 21:18:36 +0800
commit08956cf8cd8040f8500c40b646a52b6f03ae5275 (patch)
tree0daee90abd63824e290901baff0ff3fe75d969b1 /embed/ephy-embed-single.c
parent44050bc63e4c131809af0f078e211587fe55e0f2 (diff)
downloadgsoc2013-epiphany-08956cf8cd8040f8500c40b646a52b6f03ae5275.tar
gsoc2013-epiphany-08956cf8cd8040f8500c40b646a52b6f03ae5275.tar.gz
gsoc2013-epiphany-08956cf8cd8040f8500c40b646a52b6f03ae5275.tar.bz2
gsoc2013-epiphany-08956cf8cd8040f8500c40b646a52b6f03ae5275.tar.lz
gsoc2013-epiphany-08956cf8cd8040f8500c40b646a52b6f03ae5275.tar.xz
gsoc2013-epiphany-08956cf8cd8040f8500c40b646a52b6f03ae5275.tar.zst
gsoc2013-epiphany-08956cf8cd8040f8500c40b646a52b6f03ae5275.zip
ephy-embed-single: remove some dead code
Diffstat (limited to 'embed/ephy-embed-single.c')
-rw-r--r--embed/ephy-embed-single.c57
1 files changed, 1 insertions, 56 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index df9be83e9..3062d92b3 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -31,7 +31,6 @@
#include "ephy-debug.h"
#include "ephy-file-helpers.h"
#include "ephy-signal-accumulator.h"
-#include "ephy-permission-manager.h"
#include "ephy-profile-utils.h"
#include "ephy-prefs.h"
#include "ephy-settings.h"
@@ -60,7 +59,6 @@ enum {
static void ephy_embed_single_init (EphyEmbedSingle *single);
static void ephy_embed_single_class_init (EphyEmbedSingleClass *klass);
-static void ephy_permission_manager_iface_init (EphyPermissionManagerIface *iface);
static void
ephy_embed_single_get_property (GObject *object,
@@ -98,12 +96,7 @@ ephy_embed_single_set_property (GObject *object,
}
}
-/* Some compilers (like gcc 2.95) don't support preprocessor directives inside macros,
- so we have to duplicate the whole thing */
-
-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)
@@ -342,54 +335,6 @@ ephy_embed_single_class_init (EphyEmbedSingleClass *klass)
}
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;
-}
-
-static void
cache_size_cb (GSettings *settings,
char *key,
EphyEmbedSingle *single)