Codechange: remove unused Pack from Order

This commit is contained in:
Rubidium 2025-02-01 21:19:10 +01:00 committed by rubidium42
parent 2d5565129a
commit a49963ac39
2 changed files with 0 additions and 12 deletions

View File

@ -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();
};

View File

@ -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.