From a49963ac395b04571f8eda042503283a8737b6be Mon Sep 17 00:00:00 2001 From: Rubidium Date: Sat, 1 Feb 2025 21:19:10 +0100 Subject: [PATCH] Codechange: remove unused Pack from Order --- src/order_base.h | 1 - src/order_cmd.cpp | 11 ----------- 2 files changed, 12 deletions(-) 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.