summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 4838623cf..af6af1a35 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -49,30 +49,6 @@ void ShowNewGRFError()
}
}
-/** Parse an integerlist string and set each found value
- * @param p the string to be parsed. Each element in the list is seperated by a
- * comma or a space character
- * @param items pointer to the integerlist-array that will be filled with values
- * @param maxitems the maximum number of elements the integerlist-array has
- * @return returns the number of items found, or -1 on an error */
-static int parse_intlist(const char *p, int *items, int maxitems)
-{
- int n = 0, v;
- char *end;
-
- for (;;) {
- while (*p == ' ' || *p == ',') p++;
- if (*p == '\0') break;
- v = strtol(p, &end, 0);
- if (p == end || n == maxitems) return -1;
- p = end;
- items[n++] = v;
- }
-
- return n;
-}
-
-
static void ShowNewGRFInfo(const GRFConfig *c, uint x, uint y, uint right, uint bottom, bool show_params)
{
char buff[256];