summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2008-08-23 09:31:53 +0000
committercelestar <celestar@openttd.org>2008-08-23 09:31:53 +0000
commit7e8c7dfcbffff8e12bf85b0101a1b0ce92d17e43 (patch)
tree7105af68cd7a4de890ea06741a09bfbd303d5464
parente89e6b1361cc44b9c1f2b1501f419f54f0b31528 (diff)
downloadopenttd-7e8c7dfcbffff8e12bf85b0101a1b0ce92d17e43.tar.xz
(svn r14137) -Codechange: Remove a now unused member of CargoPacket
-rw-r--r--src/cargopacket.cpp11
-rw-r--r--src/cargopacket.h2
2 files changed, 0 insertions, 13 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));
- }
-}
diff --git a/src/cargopacket.h b/src/cargopacket.h
index 7731228ff..12014d3fd 100644
--- a/src/cargopacket.h
+++ b/src/cargopacket.h
@@ -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;
};
/**