From 70e980e3b32b09be38bfbfd56c8f34ab6379ff3c Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sun, 1 Mar 2009 20:18:06 +0000 Subject: Remove ephy_embed_has_automatic_encoding, it's unused now. svn path=/trunk/; revision=8833 --- doc/reference/tmpl/ephy-embed.sgml | 12 ------------ embed/ephy-embed.c | 16 ---------------- embed/ephy-embed.h | 2 -- embed/webkit/webkit-embed.c | 7 ------- src/ephy-encoding-dialog.c | 2 -- src/epiphany.defs | 6 ------ 6 files changed, 45 deletions(-) diff --git a/doc/reference/tmpl/ephy-embed.sgml b/doc/reference/tmpl/ephy-embed.sgml index c7236b853..6991679d7 100644 --- a/doc/reference/tmpl/ephy-embed.sgml +++ b/doc/reference/tmpl/ephy-embed.sgml @@ -255,9 +255,6 @@ be done by casting). @shistory_copy: @get_security_level: @show_page_certificate: -@get_encoding: -@has_automatic_encoding: -@set_encoding: @set_print_preview_mode: @print_preview_n_pages: @print_preview_navigate: @@ -373,15 +370,6 @@ windows opened with JavaScript often use a nonstandard chrome. @description: - - - - - -@embed: -@encoding: - - diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 73d34d6f3..bb1cc3bd1 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -555,22 +555,6 @@ ephy_embed_show_page_certificate (EphyEmbed *embed) iface->show_page_certificate (embed); } -/** - * ephy_embed_has_automatic_encoding: - * @embed: an #EphyEmbed - * - * Returns whether the @embed's document encoding was determined by the - * document itself. - * - * Returns: if the @embed's document encoding was determined by itself - **/ -gboolean -ephy_embed_has_automatic_encoding (EphyEmbed *embed) -{ - EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); - return iface->has_automatic_encoding (embed); -} - /** * ephy_embed_set_print_preview_mode: * @embed: an #EphyEmbed diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h index 0b9c65149..bc41d93cb 100644 --- a/embed/ephy-embed.h +++ b/embed/ephy-embed.h @@ -190,7 +190,6 @@ struct _EphyEmbedIface void (* scroll_pixels) (EphyEmbed *embed, int dx, int dy); - gboolean (* has_automatic_encoding) (EphyEmbed *embed); void (* set_print_preview_mode) (EphyEmbed *embed, gboolean mode); int (* print_preview_n_pages) (EphyEmbed *embed); @@ -305,7 +304,6 @@ gboolean ephy_embed_get_is_blank (EphyEmbed *embed); const char * ephy_embed_get_loading_title (EphyEmbed *embed); gboolean ephy_embed_get_visibility (EphyEmbed *embed); -gboolean ephy_embed_has_automatic_encoding (EphyEmbed *embed); /* Print */ void ephy_embed_set_print_preview_mode (EphyEmbed *embed, diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c index e41d7172d..81095e411 100644 --- a/embed/webkit/webkit-embed.c +++ b/embed/webkit/webkit-embed.c @@ -557,12 +557,6 @@ impl_print_preview_navigate (EphyEmbed *embed, { } -static gboolean -impl_has_automatic_encoding (EphyEmbed *embed) -{ - return FALSE; -} - static gboolean impl_has_modified_forms (EphyEmbed *embed) { @@ -581,7 +575,6 @@ ephy_embed_iface_init (EphyEmbedIface *iface) iface->get_js_status = impl_get_js_status; iface->shistory_copy = impl_shistory_copy; iface->show_page_certificate = impl_show_page_certificate; - iface->has_automatic_encoding = impl_has_automatic_encoding; iface->set_print_preview_mode = impl_set_print_preview_mode; iface->print_preview_n_pages = impl_print_preview_n_pages; iface->print_preview_navigate = impl_print_preview_navigate; diff --git a/src/ephy-encoding-dialog.c b/src/ephy-encoding-dialog.c index 0556a8813..e9283cfb8 100644 --- a/src/ephy-encoding-dialog.c +++ b/src/ephy-encoding-dialog.c @@ -127,8 +127,6 @@ sync_encoding_against_embed (EphyEncodingDialog *dialog) g_list_free (rows); } - is_automatic = ephy_embed_has_automatic_encoding (embed); - button = ephy_dialog_get_control (EPHY_DIALOG (dialog), properties[AUTOMATIC_PROP].id); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), is_automatic); diff --git a/src/epiphany.defs b/src/epiphany.defs index ad5c8c06d..d0d5faaa7 100644 --- a/src/epiphany.defs +++ b/src/epiphany.defs @@ -1099,12 +1099,6 @@ (return-type "none") ) -(define-method has_automatic_encoding - (of-object "EphyEmbed") - (c-name "ephy_embed_has_automatic_encoding") - (return-type "gboolean") -) - (define-method set_print_preview_mode (of-object "EphyEmbed") (c-name "ephy_embed_set_print_preview_mode") -- cgit v1.2.3