diff options
author | Xan Lopez <xan@igalia.com> | 2012-01-17 20:30:48 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-01-17 20:30:48 +0800 |
commit | 6f7683801e0a6ab4b10e5a6a5b4c65ddddce721e (patch) | |
tree | d87ba1fd4cf8fff30e19a7e56413dcc5fa3e699c /embed/ephy-web-view.c | |
parent | 8116867c05267353d8f93b3e280be48b9288e80d (diff) | |
download | gsoc2013-epiphany-6f7683801e0a6ab4b10e5a6a5b4c65ddddce721e.tar.gz gsoc2013-epiphany-6f7683801e0a6ab4b10e5a6a5b4c65ddddce721e.tar.zst gsoc2013-epiphany-6f7683801e0a6ab4b10e5a6a5b4c65ddddce721e.zip |
ephy-web-view: remove unused method
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r-- | embed/ephy-web-view.c | 66 |
1 files changed, 0 insertions, 66 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 * |