summaryrefslogtreecommitdiff
path: root/apps/gui/wps_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/wps_parser.c')
-rw-r--r--apps/gui/wps_parser.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c
index f421a0c8d4..1b845c9f8a 100644
--- a/apps/gui/wps_parser.c
+++ b/apps/gui/wps_parser.c
@@ -162,8 +162,6 @@ static int parse_albumart_load(const char *wps_bufptr,
162static int parse_albumart_conditional(const char *wps_bufptr, 162static int parse_albumart_conditional(const char *wps_bufptr,
163 struct wps_token *token, struct wps_data *wps_data); 163 struct wps_token *token, struct wps_data *wps_data);
164#endif /* HAVE_ALBUMART */ 164#endif /* HAVE_ALBUMART */
165static int parse_viewmode(const char *wps_bufptr,
166 struct wps_token *token, struct wps_data *wps_data);
167 165
168#ifdef CONFIG_RTC 166#ifdef CONFIG_RTC
169#define WPS_RTC_REFRESH WPS_REFRESH_DYNAMIC 167#define WPS_RTC_REFRESH WPS_REFRESH_DYNAMIC
@@ -283,8 +281,6 @@ static const struct wps_tag all_tags[] = {
283 { WPS_TOKEN_PLAYBACK_STATUS, "mp", WPS_REFRESH_DYNAMIC, NULL }, 281 { WPS_TOKEN_PLAYBACK_STATUS, "mp", WPS_REFRESH_DYNAMIC, NULL },
284 { WPS_TOKEN_BUTTON_VOLUME, "mv", WPS_REFRESH_DYNAMIC, 282 { WPS_TOKEN_BUTTON_VOLUME, "mv", WPS_REFRESH_DYNAMIC,
285 parse_timeout }, 283 parse_timeout },
286 { WPS_TOKEN_VIEWMODE, "mo", WPS_REFRESH_STATIC,
287 parse_viewmode },
288 284
289#ifdef HAVE_LCD_BITMAP 285#ifdef HAVE_LCD_BITMAP
290 { WPS_TOKEN_PEAKMETER, "pm", WPS_REFRESH_PEAK_METER, NULL }, 286 { WPS_TOKEN_PEAKMETER, "pm", WPS_REFRESH_PEAK_METER, NULL },
@@ -1146,15 +1142,6 @@ static int parse_albumart_conditional(const char *wps_bufptr,
1146}; 1142};
1147#endif /* HAVE_ALBUMART */ 1143#endif /* HAVE_ALBUMART */
1148 1144
1149static int parse_viewmode(const char *wps_bufptr,
1150 struct wps_token *token,
1151 struct wps_data *wps_data)
1152{
1153 (void)wps_bufptr; (void)token;
1154 wps_data->current_mode = 1;
1155 /* are we going to add parameters? */
1156 return 0;
1157}
1158/* Parse a generic token from the given string. Return the length read */ 1145/* Parse a generic token from the given string. Return the length read */
1159static int parse_token(const char *wps_bufptr, struct wps_data *wps_data) 1146static int parse_token(const char *wps_bufptr, struct wps_data *wps_data)
1160{ 1147{
@@ -1489,7 +1476,6 @@ void wps_data_init(struct wps_data *wps_data)
1489 wps_data->full_line_progressbar = false; 1476 wps_data->full_line_progressbar = false;
1490#endif 1477#endif
1491 wps_data->button_time_volume = 0; 1478 wps_data->button_time_volume = 0;
1492 wps_data->current_mode = -1;
1493 wps_data->wps_loaded = false; 1479 wps_data->wps_loaded = false;
1494} 1480}
1495 1481