diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-15 10:36:51 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-15 10:36:51 +0000 |
commit | 68a3df82b9542efcb9706de557cc0572c639316c (patch) | |
tree | 507d043788c1ef480a0d93c1cd7d54ad1d745c9d /src/newgrf_station.cpp | |
parent | 2723128ba9d228f4cfeede31bf57dbefd1b52647 (diff) | |
download | openttd-68a3df82b9542efcb9706de557cc0572c639316c.tar.xz |
(svn r11859) -Codechange: Update newgrf station class dropdown to use new method of generating list.
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r-- | src/newgrf_station.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index cdbdac87e..1cee614bb 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -98,25 +98,6 @@ StringID GetStationClassName(StationClassID sclass) return station_classes[sclass].name; } -/** Build a list of station class name StringIDs to use in a dropdown list - * @return Pointer to a (static) array of StringIDs - */ -StringID *BuildStationClassDropdown() -{ - /* Allow room for all station classes, plus a terminator entry */ - static StringID names[STAT_CLASS_MAX + 1]; - uint i; - - /* Add each name */ - for (i = 0; i < STAT_CLASS_MAX && station_classes[i].id != 0; i++) { - names[i] = station_classes[i].name; - } - /* Terminate the list */ - names[i] = INVALID_STRING_ID; - - return names; -} - /** * Get the number of station classes in use. * @return Number of station classes. |