From 0942e2a0f71d809c1d7f2606cbddfa1d4beacb87 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Sat, 15 Oct 2011 19:35:02 +0000 Subject: Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30756 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/viewport.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'apps/gui/viewport.c') diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index df8093d581..2ab6c343ef 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c @@ -104,7 +104,6 @@ static void toggle_theme(enum screen_type screen, bool force) bool enable_event = false; static bool was_enabled[NB_SCREENS] = {false}; static bool after_boot[NB_SCREENS] = {false}; - int i; FOR_NB_SCREENS(i) { @@ -233,7 +232,6 @@ int viewport_get_nb_lines(const struct viewport *vp) static void viewportmanager_redraw(void* data) { - int i; FOR_NB_SCREENS(i) { #ifdef HAVE_LCD_BITMAP @@ -249,7 +247,6 @@ static void viewportmanager_redraw(void* data) void viewportmanager_init() { #ifdef HAVE_LCD_BITMAP - int i; FOR_NB_SCREENS(i) { theme_stack_top[i] = -1; /* the next call fixes this to 0 */ @@ -264,7 +261,6 @@ void viewportmanager_init() #ifdef HAVE_LCD_BITMAP void viewportmanager_theme_changed(const int which) { - int i; #ifdef HAVE_BUTTONBAR if (which & THEME_BUTTONBAR) { /* don't handle further, the custom ui viewport ignores the buttonbar, -- cgit v1.2.3