summaryrefslogtreecommitdiff
path: root/src/cargotype.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cargotype.cpp')
-rw-r--r--src/cargotype.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/cargotype.cpp b/src/cargotype.cpp
index 7c533b527..8216fbb65 100644
--- a/src/cargotype.cpp
+++ b/src/cargotype.cpp
@@ -13,8 +13,6 @@
CargoSpec _cargo[NUM_CARGO];
-static const byte INVALID_CARGO = 0xFF;
-
/* Bitmask of cargo types available */
uint32 _cargo_mask;
@@ -55,19 +53,6 @@ void SetupCargoForClimate(LandscapeID l)
}
-const CargoSpec *GetCargo(CargoID c)
-{
- assert(c < lengthof(_cargo));
- return &_cargo[c];
-}
-
-
-bool CargoSpec::IsValid() const
-{
- return bitnum != INVALID_CARGO;
-}
-
-
CargoID GetCargoIDByLabel(CargoLabel cl)
{
for (CargoID c = 0; c < lengthof(_cargo); c++) {