diff gui/app.c @ 33103:eabc2472e7eb

Remove unused wItem member tmp.
author ib
date Sat, 02 Apr 2011 22:01:55 +0000
parents b8779b19730e
children f0c2a62e3e89
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;
-        }
-    }
 }