summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
294 return NULL; 294 return NULL;
295} 295}
296 296
297int skin_last_token_index(struct wps_data *data, int line, int subline)
298{
299 int first_subline_idx = data->lines[line].first_subline_idx;
300 int idx = first_subline_idx + subline;
301 if (idx < data->num_sublines - 1)
302 {
303 /* This subline ends where the next begins */
304 return data->sublines[idx+1].first_token_idx - 1;
305 }
306 else
307 {
308 /* The last subline goes to the end */
309 return data->num_tokens - 1;
310 }
311}
312
313/* From viewport.c & misc.h */ 297/* From viewport.c & misc.h */
314#define LIST_VALUE_PARSED(setvals, position) ((setvals) & BIT_N(position)) 298#define LIST_VALUE_PARSED(setvals, position) ((setvals) & BIT_N(position))
315 299