(svn r18385) -Cleanup: remove the now unneeded multistop slot management code

This commit is contained in:
rubidium
2009-12-02 18:18:56 +00:00
parent 429f3993f8
commit 0ef0e13795
13 changed files with 10 additions and 354 deletions

View File

@@ -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);
}
/**