From 4db9dbe7441db7dee1405e7c83b110718a4c9460 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 17 May 2011 09:05:49 +0000 Subject: Purge unused variable. svn path=/trunk/netsurf/; revision=12425 --- desktop/scrollbar.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'desktop') diff --git a/desktop/scrollbar.c b/desktop/scrollbar.c index 9349c382f..1c99b14a6 100644 --- a/desktop/scrollbar.c +++ b/desktop/scrollbar.c @@ -189,7 +189,7 @@ bool scrollbar_redraw(struct scrollbar *s, int x, int y, const struct rect *clip, float scale) { int w = SCROLLBAR_WIDTH; - int well_length, bar_pos, bar_c0, bar_c1; + int bar_pos, bar_c0, bar_c1; int v[6]; /* array of triangle vertices */ int x0, y0, x1, y1; @@ -206,7 +206,6 @@ bool scrollbar_redraw(struct scrollbar *s, int x, int y, .fill_colour = scrollbar_widget_arrow_colour, }; - well_length = s->length - 2 * SCROLLBAR_WIDTH; x0 = x; y0 = y; x1 = x + (s->horizontal ? s->length : SCROLLBAR_WIDTH) - 1; @@ -217,7 +216,6 @@ bool scrollbar_redraw(struct scrollbar *s, int x, int y, if (scale != 1.0) { w *= scale; - well_length *= scale; x0 *= scale; y0 *= scale; x1 *= scale; -- cgit v1.2.3