summaryrefslogtreecommitdiff
path: root/src/cargopacket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cargopacket.cpp')
-rw-r--r--src/cargopacket.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp
index 94adb4eaf..a09a978a1 100644
--- a/src/cargopacket.cpp
+++ b/src/cargopacket.cpp
@@ -16,9 +16,6 @@ void InitializeCargoPackets()
/* Clean the cargo packet pool and create 1 block in it */
_CargoPacket_pool.CleanPool();
_CargoPacket_pool.AddBlockToPool();
-
- /* Check whether our &cargolist == &cargolist.packets "hack" works */
- CargoList::AssertOnWrongPacketOffset();
}
CargoPacket::CargoPacket(StationID source, uint16 count)
@@ -87,13 +84,6 @@ extern const ChunkHandler _cargopacket_chunk_handlers[] = {
*
*/
-/* static */ void CargoList::AssertOnWrongPacketOffset()
-{
- CargoList cl;
- if ((void*)&cl != (void*)cl.Packets()) NOT_REACHED();
-}
-
-
CargoList::~CargoList()
{
while (!packets.empty()) {