summaryrefslogtreecommitdiff
path: root/desktop/scrollbar.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-05-17 09:05:49 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-05-17 09:05:49 +0000
commit4db9dbe7441db7dee1405e7c83b110718a4c9460 (patch)
tree14167e43706ff4da5b75ee51e11bdfb427457250 /desktop/scrollbar.c
parentc7e943c7d26e117ee522bf716182cfb81fdf4cf4 (diff)
downloadnetsurf-4db9dbe7441db7dee1405e7c83b110718a4c9460.tar.gz
netsurf-4db9dbe7441db7dee1405e7c83b110718a4c9460.tar.bz2
Purge unused variable.
svn path=/trunk/netsurf/; revision=12425
Diffstat (limited to 'desktop/scrollbar.c')
-rw-r--r--desktop/scrollbar.c4
1 files changed, 1 insertions, 3 deletions
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;