summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2018-05-28 21:38:57 -0500
committerMichael Catanzaro <mcatanzaro@igalia.com>2018-05-28 21:44:11 -0500
commit8976ca034341186a313c371955c6dad40738aec2 (patch)
tree3442ce06bc10b8774aca2060a088fbe5dcbe20b3
parent40209ab6a161e53af8d3111620fc37c20a365360 (diff)
downloadepiphany-8976ca034341186a313c371955c6dad40738aec2.tar.gz
Revert "Track the currently committed address"
This reverts commit 34216ae096a296e29c5176a704f076434214d1ed. https://bugzilla.gnome.org/show_bug.cgi?id=796204
-rw-r--r--embed/ephy-web-view.c21
-rw-r--r--embed/ephy-web-view.h1
2 files changed, 0 insertions, 22 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 14f27dc4d..63695934b 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -80,7 +80,6 @@ struct _EphyWebView {
guint history_frozen : 1;
guint ever_committed : 1;
- char *last_committed_address;
char *address;
char *display_address;
char *typed_address;
@@ -947,7 +946,6 @@ ephy_web_view_finalize (GObject *object)
ephy_web_view_popups_manager_reset (view);
- g_free (view->last_committed_address);
g_free (view->address);
g_free (view->display_address);
g_free (view->typed_address);
@@ -1713,9 +1711,6 @@ ephy_web_view_set_committed_location (EphyWebView *view,
ephy_web_view_set_loading_message (view, location);
}
- g_clear_pointer (&view->last_committed_address, g_free);
- view->last_committed_address = g_strdup (ephy_web_view_get_address (view));
-
ephy_web_view_set_link_message (view, NULL);
_ephy_web_view_update_icon (view);
@@ -2822,22 +2817,6 @@ ephy_web_view_get_address (EphyWebView *view)
}
/**
- * ephy_web_view_get_last_committed_address:
- * @view: an #EphyWebView
- *
- * Returns the address of the last committed page, percent-encoded.
- * This URI should not be displayed to the user; to do that, use
- * ephy_web_view_get_display_address().
- *
- * Return value: @view's address. Will never be %NULL.
- **/
-const char *
-ephy_web_view_get_last_committed_address (EphyWebView *view)
-{
- return view->last_committed_address ? view->last_committed_address : "about:blank";
-}
-
-/**
* ephy_web_view_get_display_address:
* @view: an #EphyWebView
*
diff --git a/embed/ephy-web-view.h b/embed/ephy-web-view.h
index b4a3df3bd..765a27fd5 100644
--- a/embed/ephy-web-view.h
+++ b/embed/ephy-web-view.h
@@ -109,7 +109,6 @@ void ephy_web_view_get_security_level (EphyWebView
GTlsCertificateFlags *errors);
void ephy_web_view_print (EphyWebView *view);
const char * ephy_web_view_get_address (EphyWebView *view);
-const char * ephy_web_view_get_last_committed_address (EphyWebView *view);
const char * ephy_web_view_get_display_address (EphyWebView *view);
void ephy_web_view_set_placeholder (EphyWebView *view,
const char *uri,