diff options
Diffstat (limited to 'src/network/core/packet.cpp')
-rw-r--r-- | src/network/core/packet.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/network/core/packet.cpp b/src/network/core/packet.cpp index 7a43173f1..a70bd6ca0 100644 --- a/src/network/core/packet.cpp +++ b/src/network/core/packet.cpp @@ -48,20 +48,6 @@ Packet::Packet(PacketType type) } /** - * Create a packet for sending - * @param type the of packet - * @return the newly created packet - */ -Packet *NetworkSend_Init(PacketType type) -{ - Packet *packet = new Packet(type); - /* An error is inplace here, because it simply means we ran out of memory. */ - if (packet == NULL) error("Failed to allocate Packet"); - - return packet; -} - -/** * Writes the packet size from the raw packet from packet->size */ void Packet::PrepareToSend() |