[epiphany] ephy-web-view: remove unused method



commit 6f7683801e0a6ab4b10e5a6a5b4c65ddddce721e
Author: Xan Lopez <xan igalia com>
Date:   Tue Jan 17 13:30:48 2012 +0100

    ephy-web-view: remove unused method

 embed/ephy-web-view.c |   66 -------------------------------------------------
 embed/ephy-web-view.h |    1 -
 2 files changed, 0 insertions(+), 67 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 60915e8..08d2f86 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 6b3559d..7539a9f 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]