From 02ac6b1976ab0d26b4812a3dd221ff90df580f1f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 26 May 2014 11:05:03 +0100 Subject: Remove a couple of unused variables. --- riscos/gui/button_bar.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'riscos') 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; -- cgit v1.2.3