From 7c94cf8be972d6853cc15f3971bf36fe64b04d92 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Thu, 10 Apr 2003 21:44:45 +0000 Subject: [project @ 2003-04-10 21:44:45 by bursa] Memory usage cleaning. svn path=/import/netsurf/; revision=121 --- riscos/gui.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'riscos') diff --git a/riscos/gui.c b/riscos/gui.c index 1e53d00ee..c8f293f51 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -1,5 +1,5 @@ /** - * $Id: gui.c,v 1.23 2003/03/25 21:51:29 bursa Exp $ + * $Id: gui.c,v 1.24 2003/04/10 21:44:45 bursa Exp $ */ #include "netsurf/riscos/font.h" @@ -550,26 +550,9 @@ void ro_gui_window_redraw_box(gui_window* g, struct box * box, signed long x, signed long y, os_box* clip, unsigned long current_background_color) { struct box * c; - const char * const noname = ""; - const char * name = noname; char* select_text; struct formoption* opt; - switch (box->type) - { - case BOX_TABLE: - case BOX_TABLE_ROW: - case BOX_TABLE_CELL: - case BOX_FLOAT_LEFT: - case BOX_FLOAT_RIGHT: - case BOX_BLOCK: if (box->node) name = (const char *) box->node->name; - break; - case BOX_INLINE: - case BOX_INLINE_CONTAINER: - default: - break; - } - if (x + (signed long) (box->x*2 + box->width*2) /* right edge */ >= clip->x0 && x + (signed long) (box->x*2) /* left edge */ <= clip->x1 && y - (signed long) (box->y*2 + box->height*2 + 8) /* bottom edge */ <= clip->y1 && -- cgit v1.2.3