From 0ef0e1379534c6372ea93790c1e4b0855c8077d1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 2 Dec 2009 18:18:56 +0000 Subject: (svn r18385) -Cleanup: remove the now unneeded multistop slot management code --- src/roadstop.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/roadstop.cpp') diff --git a/src/roadstop.cpp b/src/roadstop.cpp index 969c1d21d..67b54fdbd 100644 --- a/src/roadstop.cpp +++ b/src/roadstop.cpp @@ -19,21 +19,11 @@ RoadStopPool _roadstop_pool("RoadStop"); INSTANTIATE_POOL_METHODS(RoadStop) /** - * De-Initializes RoadStops. This includes clearing all slots that vehicles might - * have and unlinks it from the linked list of road stops at the given station + * De-Initializes RoadStops. */ RoadStop::~RoadStop() { if (CleaningPool()) return; - - /* Clear the slot assignment of all vehicles heading for this road stop */ - if (this->num_vehicles != 0) { - RoadVehicle *rv; - FOR_ALL_ROADVEHICLES(rv) { - if (rv->slot == this) ClearSlot(rv); - } - } - assert(this->num_vehicles == 0); } /** -- cgit v1.2.3-54-g00ecf