From f2e55319dd165f57e008e0fac355ce294fc98905 Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 25 Jun 2009 23:49:59 +0000 Subject: (svn r16661) -Codechange: move definition of few very short functions to header files --- src/cargotype.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/cargotype.cpp') 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++) { -- cgit v1.2.3-54-g00ecf