diff options
author | Xan Lopez <xan@igalia.com> | 2012-10-08 22:57:11 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-10-08 22:57:11 +0800 |
commit | e628032b0988ddb8cd3c922943c53e6ee65ec824 (patch) | |
tree | 6dd9ddc69668905d4d57ed23ef4bd4c32ed9d412 | |
parent | 3834a5ed9e2dacfed1c716460ddcde2677e7c5bf (diff) | |
download | gsoc2013-epiphany-e628032b0988ddb8cd3c922943c53e6ee65ec824.tar gsoc2013-epiphany-e628032b0988ddb8cd3c922943c53e6ee65ec824.tar.gz gsoc2013-epiphany-e628032b0988ddb8cd3c922943c53e6ee65ec824.tar.bz2 gsoc2013-epiphany-e628032b0988ddb8cd3c922943c53e6ee65ec824.tar.lz gsoc2013-epiphany-e628032b0988ddb8cd3c922943c53e6ee65ec824.tar.xz gsoc2013-epiphany-e628032b0988ddb8cd3c922943c53e6ee65ec824.tar.zst gsoc2013-epiphany-e628032b0988ddb8cd3c922943c53e6ee65ec824.zip |
ephy-loader: remove, this is unused now
-rw-r--r-- | lib/Makefile.am | 2 | ||||
-rw-r--r-- | lib/ephy-loader.c | 68 | ||||
-rw-r--r-- | lib/ephy-loader.h | 69 | ||||
-rw-r--r-- | src/epiphany.h.in | 1 |
4 files changed, 0 insertions, 140 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 5992bf5f3..175297c7c 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -36,7 +36,6 @@ TYPES_H_FILES = \ INST_H_FILES = \ ephy-dialog.h \ - ephy-loader.h \ ephy-node.h \ ephy-node-db.h \ ephy-settings.h \ @@ -50,7 +49,6 @@ libephymisc_la_SOURCES = \ ephy-file-helpers.c \ ephy-gui.c \ ephy-langs.c \ - ephy-loader.c \ ephy-node.c \ ephy-node.h \ ephy-node-filter.c \ diff --git a/lib/ephy-loader.c b/lib/ephy-loader.c deleted file mode 100644 index 1731b88d5..000000000 --- a/lib/ephy-loader.c +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright © 2003 Marco Pesenti Gritti - * Copyright © 2003, 2004 Christian Persch - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - */ - -#include "config.h" - -#include "ephy-loader.h" - -GType -ephy_loader_get_type (void) -{ - static GType type = 0; - - if (G_UNLIKELY (type == 0)) - { - const GTypeInfo our_info = - { - sizeof (EphyLoaderIface), - NULL, - NULL, - }; - - type = g_type_register_static (G_TYPE_INTERFACE, - "EphyLoader", - &our_info, 0); - } - - return type; -} - -const char * -ephy_loader_type (const EphyLoader *loader) -{ - EphyLoaderIface *iface = EPHY_LOADER_GET_IFACE (loader); - return iface->type; -} - -GObject * -ephy_loader_get_object (EphyLoader *loader, - GKeyFile *keyfile) -{ - EphyLoaderIface *iface = EPHY_LOADER_GET_IFACE (loader); - return iface->get_object (loader, keyfile); -} - -void -ephy_loader_release_object (EphyLoader *loader, - GObject *object) -{ - EphyLoaderIface *iface = EPHY_LOADER_GET_IFACE (loader); - iface->release_object (loader, object); -} diff --git a/lib/ephy-loader.h b/lib/ephy-loader.h deleted file mode 100644 index 326b96579..000000000 --- a/lib/ephy-loader.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright © 2003 Marco Pesenti Gritti - * Copyright © 2003, 2004 Christian Persch - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - */ - -#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) -#error "Only <epiphany/epiphany.h> can be included directly." -#endif - -#ifndef EPHY_LOADER_H -#define EPHY_LOADER_H - -#include <glib.h> -#include <glib-object.h> - -G_BEGIN_DECLS - -#define EPHY_TYPE_LOADER (ephy_loader_get_type ()) -#define EPHY_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EPHY_TYPE_LOADER, EphyLoader)) -#define EPHY_LOADER_IFACE(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EPHY_TYPE_LOADER, EphyLoaderIface)) -#define EPHY_IS_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EPHY_TYPE_LOADER)) -#define EPHY_IS_LOADER_IFACE(iface) (G_TYPE_CHECK_CLASS_TYPE ((iface), EPHY_TYPE_LOADER)) -#define EPHY_LOADER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EPHY_TYPE_LOADER, EphyLoaderIface)) - -typedef struct _EphyLoader EphyLoader; -typedef struct _EphyLoaderIface EphyLoaderIface; - -struct _EphyLoaderIface -{ - GTypeInterface base_iface; - - /* Identifier */ - const char *type; - - /* Methods */ - GObject * (* get_object) (EphyLoader *loader, - GKeyFile *keyfile); - void (* release_object) (EphyLoader *loader, - GObject *object); -}; - -GType ephy_loader_get_type (void); - -const char *ephy_loader_type (const EphyLoader *loader); - -GObject *ephy_loader_get_object (EphyLoader *loader, - GKeyFile *keyfile); - -void ephy_loader_release_object (EphyLoader *loader, - GObject *object); - -G_END_DECLS - -#endif diff --git a/src/epiphany.h.in b/src/epiphany.h.in index d218f6c69..52550de1a 100644 --- a/src/epiphany.h.in +++ b/src/epiphany.h.in @@ -49,7 +49,6 @@ #include <epiphany/ephy-embed-utils.h> #include <epiphany/ephy-lib-type-builtins.h> #include <epiphany/ephy-link.h> -#include <epiphany/ephy-loader.h> #include <epiphany/ephy-node-db.h> #include <epiphany/ephy-node.h> #include <epiphany/ephy-notebook.h> |