diff options
Diffstat (limited to 'riscos/gui/button_bar.c')
-rw-r--r-- | riscos/gui/button_bar.c | 5 |
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; |