diff --git a/src/order_base.h b/src/order_base.h index 7ab62f8291..dd333ea923 100644 --- a/src/order_base.h +++ b/src/order_base.h @@ -244,7 +244,6 @@ public: void AssignOrder(const Order &other); bool Equals(const Order &other) const; - uint32_t Pack() const; uint16_t MapOldOrder() const; void ConvertFromOldSavegame(); }; diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index b9996cbac4..28531a723a 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -189,17 +189,6 @@ bool Order::Equals(const Order &other) const return this->type == other.type && this->flags == other.flags && this->dest == other.dest; } -/** - * Pack this order into a 32 bits integer, or actually only - * the type, flags and destination. - * @return the packed representation. - * @note unpacking is done in the constructor. - */ -uint32_t Order::Pack() const -{ - return this->dest << 16 | this->flags << 8 | this->type; -} - /** * Pack this order into a 16 bits integer as close to the TTD * representation as possible.