diff options
author | Xan Lopez <xan@igalia.com> | 2012-03-15 16:37:17 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-03-15 16:37:17 +0800 |
commit | 3060de2a0ceeb976c1da6b79f3b3a4c7ed7848d2 (patch) | |
tree | b7ee5cdef1c72eaae6b1b4e3d4af30ddeb06f3ba /embed/ephy-web-view.c | |
parent | 00276359e926f4f1fba732534a0b47bec88371f5 (diff) | |
download | gsoc2013-epiphany-3060de2a0ceeb976c1da6b79f3b3a4c7ed7848d2.tar.gz gsoc2013-epiphany-3060de2a0ceeb976c1da6b79f3b3a4c7ed7848d2.tar.zst gsoc2013-epiphany-3060de2a0ceeb976c1da6b79f3b3a4c7ed7848d2.zip |
ephy-web-view: remove can_go_up/go_up code
We do not support this anymore in our UI.
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r-- | embed/ephy-web-view.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index d7aeb61dc..3b29e9f01 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -1051,9 +1051,6 @@ update_navigation_flags (EphyWebView *view) guint flags = 0; WebKitWebView *web_view = WEBKIT_WEB_VIEW (view); - if (ephy_web_view_can_go_up (view)) - flags |= EPHY_WEB_VIEW_NAV_UP; - if (webkit_web_view_can_go_back (web_view)) flags |= EPHY_WEB_VIEW_NAV_BACK; @@ -3023,37 +3020,6 @@ ephy_web_view_location_changed (EphyWebView *view, } /** - * ephy_web_view_can_go_up: - * @view: an #EphyWebView - * - * Returns whether @view can travel to a higher-level directory on the server. - * For example, for http://www.example.com/subdir/foo.html, returns %TRUE; for - * http://www.example.com/, returns %FALSE. - * - * Return value: %TRUE if @view can browse to a higher-level directory - **/ -gboolean -ephy_web_view_can_go_up (EphyWebView *view) -{ - SoupURI *uri; - gboolean result; - - uri = soup_uri_new (ephy_web_view_get_address (view)); - if (uri == NULL) - return FALSE; - - if (strcmp (uri->scheme, "about") == 0 || strcmp (uri->scheme, "data") == 0) { - soup_uri_free (uri); - return FALSE; - } - - result = uri->fragment || uri->query || (uri->path && (strlen (uri->path) > 1)); - soup_uri_free (uri); - - return result; -} - -/** * ephy_web_view_is_loading: * @view: an #EphyWebView * @@ -3406,17 +3372,6 @@ ephy_web_view_get_location (EphyWebView *view, } /** - * ephy_web_view_go_up: - * @view: an #EphyWebView - * - * Moves @view one level up in its web page's directory hierarchy. - **/ -void -ephy_web_view_go_up (EphyWebView *view) -{ -} - -/** * ephy_web_view_get_security_level: * @view: an #EphyWebView * @level: (out): return value of security level |