summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2008-04-14 15:51:40 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2008-04-14 15:51:40 +0000
commita5ad74ffcaf8fc4d29fbc4457239d822c0215cde (patch)
tree79ff0d4479b6e6451893047008f45b5db9ec96a7 /apps/gui
parent3c9625969bd6dc235ac5fc8a1678ce7d89a9203c (diff)
Revert what was left of r17018 until I find a better way. It had quirks in some cases, and doesn't play well with what I'm about to commit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17108 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/gwps-common.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 8fc1f36484..5986928b15 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -833,15 +833,7 @@ static char *get_token_value(struct gui_wps *gwps,
return playlist_name(NULL, buf, buf_size);
case WPS_TOKEN_PLAYLIST_POSITION:
-#if CONFIG_CODEC == SWCODEC
- snprintf(buf, buf_size, "%d", id3->index + 1);
-#else
- /* On HWCODEC, using id3->index doesn't work when shuffle is
- * enabled, so we get the playlist index directly. To use
- * id3->index, something like what was added in r3726 would be
- * required. */
snprintf(buf, buf_size, "%d", playlist_get_display_index());
-#endif
return buf;
case WPS_TOKEN_PLAYLIST_SHUFFLE: