changeset 33103:eabc2472e7eb

Remove unused wItem member tmp.
author ib
date Sat, 02 Apr 2011 22:01:55 +0000
parents de688a61e439
children 65827197d1af
files gui/app.c gui/app.h gui/skin/skin.c
diffstat 3 files changed, 5 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/gui/app.c	Sat Apr 02 20:45:43 2011 +0000
+++ b/gui/app.c	Sat Apr 02 22:01:55 2011 +0000
@@ -141,7 +141,6 @@
             switch (appMPlayer.mainItems[i].type) {
             case itButton:
                 appMPlayer.mainItems[i].pressed = (int)state;
-                appMPlayer.mainItems[i].tmp     = (int)state;
                 break;
 
             case itPotmeter:
@@ -162,7 +161,6 @@
             switch (appMPlayer.barItems[i].type) {
             case itButton:
                 appMPlayer.barItems[i].pressed = (int)state;
-                appMPlayer.barItems[i].tmp     = (int)state;
                 break;
 
             case itPotmeter:
@@ -183,17 +181,11 @@
 {
     int i;
 
-    for (i = 0; i <= appMPlayer.IndexOfMainItems; i++) {
-        if (appMPlayer.mainItems[i].message == event) {
+    for (i = 0; i <= appMPlayer.IndexOfMainItems; i++)
+        if (appMPlayer.mainItems[i].message == event)
             appMPlayer.mainItems[i].pressed = set;
-            appMPlayer.barItems[i].tmp      = 0;
-        }
-    }
 
-    for (i = 0; i <= appMPlayer.IndexOfBarItems; i++) {
-        if (appMPlayer.barItems[i].message == event) {
+    for (i = 0; i <= appMPlayer.IndexOfBarItems; i++)
+        if (appMPlayer.barItems[i].message == event)
             appMPlayer.barItems[i].pressed = set;
-            appMPlayer.barItems[i].tmp     = 0;
-        }
-    }
 }
--- a/gui/app.h	Sat Apr 02 20:45:43 2011 +0000
+++ b/gui/app.h	Sat Apr 02 22:01:55 2011 +0000
@@ -160,7 +160,7 @@
     unsigned int starttime;
     int last_x;
 
-    int pressed, tmp;
+    int pressed;
 } wItem;
 
 typedef struct {
--- a/gui/skin/skin.c	Sat Apr 02 20:45:43 2011 +0000
+++ b/gui/skin/skin.c	Sat Apr 02 22:01:55 2011 +0000
@@ -415,7 +415,6 @@
     item->height  = h;
     item->message = message;
     item->pressed = btnReleased;
-    item->tmp     = 1;
 
     if (item->message == evPauseSwitchToPlay)
         item->pressed = btnDisabled;