From ce117d140e25730be3df91408d97adeb48b30ec2 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 30 May 2014 23:59:17 +0100 Subject: Remove dead code and variables. --- riscos/window.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'riscos') 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; -- cgit v1.2.3