mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r14137) -Codechange: Remove a now unused member of CargoPacket
This commit is contained in:
parent
e89e6b1361
commit
7e8c7dfcbf
@ -274,14 +274,3 @@ void CargoList::InvalidateCache()
|
||||
source = (*packets.begin())->source;
|
||||
}
|
||||
|
||||
/** Restore an array of cargo packets from a backup
|
||||
* The end of the row should be marked by an invalid packet
|
||||
*/
|
||||
void CargoPacket::RestoreBackup() const
|
||||
{
|
||||
for (const CargoPacket *cargo = this; cargo->IsValid(); cargo++) {
|
||||
CargoPacket *dest = GetCargoPacket(cargo->index);
|
||||
assert(!dest->IsValid());
|
||||
memcpy(dest, cargo, sizeof(CargoPacket));
|
||||
}
|
||||
}
|
||||
|
@ -56,8 +56,6 @@ struct CargoPacket : PoolItem<CargoPacket, CargoPacketID, &_CargoPacket_pool> {
|
||||
* @return true if and only if days_in_transit and source_xy are equal
|
||||
*/
|
||||
bool SameSource(const CargoPacket *cp) const;
|
||||
|
||||
void RestoreBackup() const;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user