Mercurial > mplayer.hg
changeset 32899:7104e2b2b648
Remove unused functions appCopy(), appFindKey() and btnGetValue().
author | ib |
---|---|
date | Mon, 28 Feb 2011 13:42:39 +0000 |
parents | eeb36d798219 |
children | 1481268ccd30 |
files | gui/app.c |
diffstat | 1 files changed, 0 insertions(+), 37 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/app.c Mon Feb 28 13:29:36 2011 +0000 +++ b/gui/app.c Mon Feb 28 13:42:39 2011 +0000 @@ -20,7 +20,6 @@ #include <string.h> #include "app.h" -#include "wm/wskeys.h" listItems appMPlayer; @@ -115,20 +114,6 @@ item->event = 0; } -void appCopy(listItems *dest, listItems *source) -{ - dest->NumberOfItems = source->NumberOfItems; - memcpy(&dest->Items, &source->Items, 128 * sizeof(wItem)); - - dest->NumberOfMenuItems = source->NumberOfMenuItems; - memcpy(&dest->MenuItems, &source->MenuItems, 32 * sizeof(wItem)); - - memcpy(&dest->main, &source->main, sizeof(wItem)); - memcpy(&dest->sub, &source->sub, sizeof(wItem)); - memcpy(&dest->menuBase, &source->menuBase, sizeof(wItem)); - memcpy(&dest->menuSelected, &source->menuSelected, sizeof(wItem)); -} - void appInitStruct(listItems *item) { int i; @@ -168,17 +153,6 @@ item->menuIsPresent = 0; } -int appFindKey(unsigned char *name) -{ - int i; - - for (i = 0; i < wsKeyNumber; i++) - if (!strcmp(wsKeyNames[i].name, name)) - return wsKeyNames[i].code; - - return -1; -} - int appFindMessage(unsigned char *str) { int i; @@ -237,17 +211,6 @@ } } -float btnGetValue(int event) -{ - int i; - - for (i = 0; i < appMPlayer.NumberOfItems + 1; i++) - if (appMPlayer.Items[i].msg == event) - return appMPlayer.Items[i].value; - - return 0; -} - void btnSet(int event, int set) { int i;