changeset 1450:7322cd940c51

garbage collect now unused a_Nav_push_nw()
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Fri, 27 Nov 2009 19:38:39 +0100
parents 6d248ac9f54b
children 20f6ac983d82
files src/nav.c src/nav.h
diffstat 2 files changed, 1 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/src/nav.c	Fri Nov 27 19:38:06 2009 +0100
+++ b/src/nav.c	Fri Nov 27 19:38:39 2009 +0100
@@ -432,19 +432,6 @@
 }
 
 /*
- * Same as a_Nav_push() but in a new window.
- */
-void a_Nav_push_nw(BrowserWindow *bw, const DilloUrl *url)
-{
-   int w, h;
-   BrowserWindow *newbw;
-
-   a_UIcmd_get_wh(bw, &w, &h);
-   newbw = a_UIcmd_browser_window_new(w, h, 0, bw);
-   a_Nav_push(newbw, url);
-}
-
-/*
  * Send the browser back to previous page
  */
 void a_Nav_back(BrowserWindow *bw)
@@ -533,7 +520,7 @@
    int idx = a_Nav_stack_ptr(bw) + offset;
 
    if (new_bw) {
-      a_Nav_push_nw(bw, a_History_get_url(NAV_UIDX(bw,idx)));
+      a_UIcmd_open_url_nw(bw, a_History_get_url(NAV_UIDX(bw,idx)));
    } else {
       a_Nav_cancel_expect(bw);
       Nav_open_url(bw, a_History_get_url(NAV_UIDX(bw,idx)), offset);
--- a/src/nav.h	Fri Nov 27 19:38:06 2009 +0100
+++ b/src/nav.h	Fri Nov 27 19:38:39 2009 +0100
@@ -15,7 +15,6 @@
 
 void a_Nav_redirection0(BrowserWindow *bw, const DilloUrl *new_url);
 void a_Nav_push(BrowserWindow *bw, const DilloUrl *url);
-void a_Nav_push_nw(BrowserWindow *bw, const DilloUrl *url);
 void a_Nav_repush(BrowserWindow *bw);
 void a_Nav_back(BrowserWindow *bw);
 void a_Nav_forw(BrowserWindow *bw);