diff options
author | celestar <celestar@openttd.org> | 2008-08-23 09:31:53 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2008-08-23 09:31:53 +0000 |
commit | 3546b74e931054ba8704c91bd6671d58f6286f1e (patch) | |
tree | 7105af68cd7a4de890ea06741a09bfbd303d5464 /src/cargopacket.cpp | |
parent | 96a96e3524aadffa6493c2dcca3e1ba2d9305d8a (diff) | |
download | openttd-3546b74e931054ba8704c91bd6671d58f6286f1e.tar.xz |
(svn r14137) -Codechange: Remove a now unused member of CargoPacket
Diffstat (limited to 'src/cargopacket.cpp')
-rw-r--r-- | src/cargopacket.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp index 244463977..e50532376 100644 --- a/src/cargopacket.cpp +++ b/src/cargopacket.cpp @@ -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)); - } -} |