summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-05-26 11:05:03 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-05-26 11:05:03 +0100
commit02ac6b1976ab0d26b4812a3dd221ff90df580f1f (patch)
treefa43d651bb65f99a285deac37b1c382c6c95708e /riscos
parent8b9f2e7ee64f0eccb825ebc06a23abf322e3bb6e (diff)
downloadnetsurf-02ac6b1976ab0d26b4812a3dd221ff90df580f1f.tar.gz
netsurf-02ac6b1976ab0d26b4812a3dd221ff90df580f1f.tar.bz2
Remove a couple of unused variables.
Diffstat (limited to 'riscos')
-rw-r--r--riscos/gui/button_bar.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/riscos/gui/button_bar.c b/riscos/gui/button_bar.c
index 7ca67f165..bfd288246 100644
--- a/riscos/gui/button_bar.c
+++ b/riscos/gui/button_bar.c
@@ -131,7 +131,6 @@ struct button_bar *ro_gui_button_bar_create(struct theme_descriptor *theme,
{
struct button_bar *button_bar;
struct button_bar_button *icon, *new_icon;
- bool failed;
int def;
/* Allocate memory. */
@@ -170,12 +169,10 @@ struct button_bar *ro_gui_button_bar_create(struct theme_descriptor *theme,
/* Process the button icon definitions */
icon = NULL;
- failed = false;
for (def = 0; buttons[def].icon != NULL; def++) {
new_icon = malloc(sizeof(struct button_bar_button));
if (new_icon == NULL) {
- failed = true;
break;
}
@@ -248,7 +245,6 @@ bool ro_gui_button_bar_rebuild(struct button_bar *button_bar,
wimp_w window, bool edit)
{
struct button_bar_button *button;
- os_error *error;
int height;
@@ -276,7 +272,6 @@ bool ro_gui_button_bar_rebuild(struct button_bar *button_bar,
button_bar->separators = (height == 0) ? false : true;
button = button_bar->buttons;
- error = NULL;
while (button != NULL) {
button->x_size = 0;