diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-30 23:59:17 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-30 23:59:17 +0100 |
commit | ce117d140e25730be3df91408d97adeb48b30ec2 (patch) | |
tree | dcec4fc119e597d6630c9f418c3195e88ee783c9 | |
parent | 910efb015648763dce601f147b3e6173f262ef89 (diff) | |
download | netsurf-ce117d140e25730be3df91408d97adeb48b30ec2.tar.gz netsurf-ce117d140e25730be3df91408d97adeb48b30ec2.tar.bz2 |
Remove dead code and variables.
-rw-r--r-- | riscos/window.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/riscos/window.c b/riscos/window.c index b8eb1b6fc..16af908b5 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1505,7 +1505,7 @@ void ro_gui_window_open(wimp_open *open) struct gui_window *g = (struct gui_window *)ro_gui_wimp_event_get_user_data(open->w); int width = open->visible.x1 - open->visible.x0; int height = open->visible.y1 - open->visible.y0; - int size, fheight, fwidth, toolbar_height = 0; + int size, toolbar_height = 0; bool no_vscroll, no_hscroll; float new_scale = 0; hlcache_handle *h; @@ -1554,9 +1554,6 @@ void ro_gui_window_open(wimp_open *open) size = ro_get_hscroll_height(NULL); if (g->bw->border) size -= 2; - fheight = height; - if (state.flags & wimp_WINDOW_HSCROLL) - fheight += size; if (!no_hscroll) { if (!(state.flags & wimp_WINDOW_HSCROLL)) { height -= size; @@ -1583,9 +1580,6 @@ void ro_gui_window_open(wimp_open *open) size = ro_get_vscroll_width(NULL); if (g->bw->border) size -= 2; - fwidth = width; - if (state.flags & wimp_WINDOW_VSCROLL) - fwidth += size; if (!no_vscroll) { if (!(state.flags & wimp_WINDOW_VSCROLL)) { width -= size; |