fix error, none of this code is needed or would work in the checkwps program anyway

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30429 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2011-09-04 13:23:40 +00:00
parent 8997321777
commit 642736f53b

View file

@ -1140,6 +1140,7 @@ static const struct touchaction touchactions[] = {
static int touchregion_setup_setting(struct skin_element *element, int param_no,
struct touchregion *region)
{
#ifndef __PCTOOL__
int p = param_no;
char *name = element->params[p++].data.text;
int j;
@ -1147,6 +1148,7 @@ static int touchregion_setup_setting(struct skin_element *element, int param_no,
region->setting_data.setting = find_setting_by_cfgname(name, &j);
if (region->setting_data.setting == NULL)
return WPS_ERROR_INVALID_PARAM;
if (region->action == ACTION_SETTINGS_SET)
{
char* text;
@ -1155,7 +1157,7 @@ static int touchregion_setup_setting(struct skin_element *element, int param_no,
&region->setting_data;
if (element->params_count < p+1)
return -1;
#ifndef __PCTOOL__
text = element->params[p++].data.text;
switch (settings[j].flags&F_T_MASK)
{
@ -1190,9 +1192,10 @@ static int touchregion_setup_setting(struct skin_element *element, int param_no,
default:
return -1;
}
#endif /* __PCTOOL__ */
}
return p-param_no;
#endif /* __PCTOOL__ */
return 0;
}
static int parse_touchregion(struct skin_element *element,