summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-13 21:38:23 +0000
committersmatz <smatz@openttd.org>2009-05-13 21:38:23 +0000
commita1addc1d9540b3cd80581d36ac341a1303ce302f (patch)
tree6f052a1162bd3c124b508400ac8a0d4c33b5bf08 /src/vehicle.cpp
parentc0ed9f779b7c21acf868b30782f6d7e98b919ca1 (diff)
downloadopenttd-a1addc1d9540b3cd80581d36ac341a1303ce302f.tar.xz
(svn r16302) -Codechange: remove Vehicle::AllocateList
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 29bd977ad..0abfa1376 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -206,22 +206,6 @@ byte VehicleRandomBits()
return GB(Random(), 0, 8);
}
-
-/* static */ bool Vehicle::AllocateList(Vehicle **vl, int num)
-{
- if (!Vehicle::CanAllocateItem(num)) return false;
- if (vl == NULL) return true;
-
- uint counter = _Vehicle_pool.first_free_index;
-
- for (int i = 0; i != num; i++) {
- vl[i] = new (AllocateRaw(counter)) InvalidVehicle();
- counter++;
- }
-
- return true;
-}
-
/* Size of the hash, 6 = 64 x 64, 7 = 128 x 128. Larger sizes will (in theory) reduce hash
* lookup times at the expense of memory usage. */
const int HASH_BITS = 7;