From 96b21753bc12c601359f2c0e9acaeb81ad671bdc Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sun, 22 May 2011 13:53:31 +0000 Subject: Fix some residual 'defined but not used' warnings by GCC 4.6.0 for touchscreen targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29910 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_touchsupport.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/gui') diff --git a/apps/gui/skin_engine/skin_touchsupport.c b/apps/gui/skin_engine/skin_touchsupport.c index beb6780c3c..fb4780c22d 100644 --- a/apps/gui/skin_engine/skin_touchsupport.c +++ b/apps/gui/skin_engine/skin_touchsupport.c @@ -56,7 +56,6 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset, short x,y; short vx, vy; int type = action_get_touchscreen_press(&x, &y); - static int last_action = ACTION_NONE; struct touchregion *r, *temp = NULL; bool repeated = (type == BUTTON_REPEAT); bool released = (type == BUTTON_REL); @@ -109,7 +108,6 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset, if (r->armed && ((repeated && needs_repeat) || (released && !needs_repeat))) { - last_action = r->action; returncode = r->action; temp = r; } @@ -270,7 +268,6 @@ int skin_get_touchaction(struct wps_data *data, int* edge_offset, } return returncode; } - - last_action = ACTION_TOUCHSCREEN; + return ACTION_TOUCHSCREEN; } -- cgit v1.2.3