mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
Codechange: remove unused Pack from Order
This commit is contained in:
parent
2d5565129a
commit
a49963ac39
@ -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();
|
||||
};
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user