aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-01-17 20:30:48 +0800
committerXan Lopez <xan@igalia.com>2012-01-17 20:30:48 +0800
commit6f7683801e0a6ab4b10e5a6a5b4c65ddddce721e (patch)
treed87ba1fd4cf8fff30e19a7e56413dcc5fa3e699c
parent8116867c05267353d8f93b3e280be48b9288e80d (diff)
downloadgsoc2013-epiphany-6f7683801e0a6ab4b10e5a6a5b4c65ddddce721e.tar
gsoc2013-epiphany-6f7683801e0a6ab4b10e5a6a5b4c65ddddce721e.tar.gz
gsoc2013-epiphany-6f7683801e0a6ab4b10e5a6a5b4c65ddddce721e.tar.bz2
gsoc2013-epiphany-6f7683801e0a6ab4b10e5a6a5b4c65ddddce721e.tar.lz
gsoc2013-epiphany-6f7683801e0a6ab4b10e5a6a5b4c65ddddce721e.tar.xz
gsoc2013-epiphany-6f7683801e0a6ab4b10e5a6a5b4c65ddddce721e.tar.zst
gsoc2013-epiphany-6f7683801e0a6ab4b10e5a6a5b4c65ddddce721e.zip
ephy-web-view: remove unused method
-rw-r--r--embed/ephy-web-view.c66
-rw-r--r--embed/ephy-web-view.h1
2 files changed, 0 insertions, 67 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 60915e88c..08d2f86ae 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -3333,72 +3333,6 @@ ephy_web_view_print (EphyWebView *view)
}
/**
- * ephy_web_view_get_go_up_list:
- * @view: an #EphyWebView
- *
- * Returns a list of (%char *) URLs to higher-level directories on the same
- * server, in order of deepest to shallowest. For example, given
- * "http://www.example.com/dir/subdir/file.html", will return a list containing
- * "http://www.example.com/dir/subdir/", "http://www.example.com/dir/" and
- * "http://www.example.com/".
- *
- * Return value: (transfer none): a list of URLs higher up in @view's web
- * page's directory hierarchy
- **/
-GSList *
-ephy_web_view_get_go_up_list (EphyWebView *view)
-{
- SoupURI *uri;
- GSList *result = NULL;
- char *t1, *t2;
-
- uri = soup_uri_new (ephy_web_view_get_address (view));
- if (uri == NULL)
- return NULL;
-
- if (strcmp (uri->scheme, "about") == 0 || strcmp (uri->scheme, "data") == 0) {
- soup_uri_free (uri);
- return NULL;
- }
-
- /* remove fragment, then query, then go up path */
- if (uri->fragment) {
- soup_uri_set_fragment (uri, NULL);
- result = g_slist_prepend (result, soup_uri_to_string (uri, FALSE));
- }
-
- if (uri->query) {
- soup_uri_set_query (uri, NULL);
- result = g_slist_prepend (result, soup_uri_to_string (uri, FALSE));
- }
-
- if (uri->path[strlen(uri->path)-1] != '/') {
- /* not a trailing slash, remove "file" part */
- t1 = strrchr (uri->path, '/');
- t2 = g_strndup (uri->path, t1-uri->path+1);
- soup_uri_set_path (uri, t2);
- g_free (t2);
- result = g_slist_prepend (result, soup_uri_to_string (uri, FALSE));
- }
-
- while (strcmp(uri->path, "/") != 0) {
- /* chop trailing / */
- uri->path[strlen (uri->path)-1] = 0;
- t1 = strrchr (uri->path, '/');
- t2 = g_strndup (uri->path, t1-uri->path+1);
- soup_uri_set_path (uri, t2);
- g_free (t2);
- result = g_slist_prepend (result, soup_uri_to_string (uri, FALSE));
- }
-
- result = g_slist_reverse (result);
-
- soup_uri_free (uri);
-
- return result;
-}
-
-/**
* ephy_web_view_get_title_composite:
* @view: an #EphyView
*
diff --git a/embed/ephy-web-view.h b/embed/ephy-web-view.h
index 6b3559dcc..7539a9f25 100644
--- a/embed/ephy-web-view.h
+++ b/embed/ephy-web-view.h
@@ -166,7 +166,6 @@ void ephy_web_view_get_security_level (EphyWebView
void ephy_web_view_show_page_certificate (EphyWebView *view);
void ephy_web_view_show_print_preview (EphyWebView *view);
void ephy_web_view_print (EphyWebView *view);
-GSList * ephy_web_view_get_go_up_list (EphyWebView *view);
void ephy_web_view_set_title (EphyWebView *view,
const char *view_title);
const char * ephy_web_view_get_title (EphyWebView *view);