summaryrefslogtreecommitdiff
path: root/src/cargotype.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-06-25 23:49:59 +0000
committersmatz <smatz@openttd.org>2009-06-25 23:49:59 +0000
commitf2e55319dd165f57e008e0fac355ce294fc98905 (patch)
tree7cb71b2eea39837e4e8ebfb80205ff31367f32ee /src/cargotype.cpp
parentc0ac230e3ea48e2e640dc74bc257f6f22d37bca3 (diff)
downloadopenttd-f2e55319dd165f57e008e0fac355ce294fc98905.tar.xz
(svn r16661) -Codechange: move definition of few very short functions to header files
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++) {