summaryrefslogtreecommitdiff
path: root/src/waypoint.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-21 11:20:34 +0000
committerrubidium <rubidium@openttd.org>2009-07-21 11:20:34 +0000
commited5ced71c852387aec030acc19ad096e55bcbd82 (patch)
tree087c8bed10e5e62eeed8052eaf781f1ec60c544c /src/waypoint.cpp
parent43eda3dfbf45a8f5060aaca3da9b8cad59a1aad8 (diff)
downloadopenttd-ed5ced71c852387aec030acc19ad096e55bcbd82.tar.xz
(svn r16897) -Codechange: use the 'generic' station spec to station allocation for waypoints too
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r--src/waypoint.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp
index 70ec5c3f5..f669570ba 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -68,28 +68,6 @@ Waypoint::~Waypoint()
this->sign.MarkDirty();
}
-/**
- * Assign a station spec to this waypoint.
- * @param index the index of the spec from the waypoint specs
- */
-void Waypoint::AssignStationSpec(uint index)
-{
- free(this->speclist);
-
- const StationSpec *statspec = GetCustomStationSpec(STAT_CLASS_WAYP, index);
-
- if (statspec != NULL) {
- this->speclist = MallocT<StationSpecList>(1);
- this->speclist->spec = statspec;
- this->speclist->grfid = statspec->grffile->grfid;
- this->speclist->localidx = statspec->localidx;
- this->num_specs = 1;
- } else {
- this->speclist = NULL;
- this->num_specs = 0;
- }
-}
-
void InitializeWaypoints()
{
_waypoint_pool.CleanPool();