summaryrefslogtreecommitdiffstats
path: root/tools/checkwps/checkwps.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-09-04 06:24:13 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-09-04 06:24:13 +0000
commit4b4e5e9265a976a7e33ee305690481bb74a1a292 (patch)
treeed15333aa107c69b4c2e6f25b4a66aa4c74e6ffc /tools/checkwps/checkwps.c
parentd466cb9bebd85c52049ddadb8fa62f1c89586070 (diff)
downloadrockbox-4b4e5e9265a976a7e33ee305690481bb74a1a292.tar.gz
rockbox-4b4e5e9265a976a7e33ee305690481bb74a1a292.tar.bz2
rockbox-4b4e5e9265a976a7e33ee305690481bb74a1a292.zip
fix checkwps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22619 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/checkwps/checkwps.c')
-rw-r--r--tools/checkwps/checkwps.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/tools/checkwps/checkwps.c b/tools/checkwps/checkwps.c
index 9689933451..88ef179cb2 100644
--- a/tools/checkwps/checkwps.c
+++ b/tools/checkwps/checkwps.c
@@ -294,22 +294,6 @@ struct skin_viewport* find_viewport(char label, struct wps_data *data)
return NULL;
}
-int skin_last_token_index(struct wps_data *data, int line, int subline)
-{
- int first_subline_idx = data->lines[line].first_subline_idx;
- int idx = first_subline_idx + subline;
- if (idx < data->num_sublines - 1)
- {
- /* This subline ends where the next begins */
- return data->sublines[idx+1].first_token_idx - 1;
- }
- else
- {
- /* The last subline goes to the end */
- return data->num_tokens - 1;
- }
-}
-
/* From viewport.c & misc.h */
#define LIST_VALUE_PARSED(setvals, position) ((setvals) & BIT_N(position))