From e3f4c63ea6b91f6ad6f46ad1324bcb582ddc2c4a Mon Sep 17 00:00:00 2001 From: Koncord Date: Fri, 24 Feb 2017 12:29:51 +0800 Subject: [PATCH] [General] Delete invalid & redundant code --- components/openmw-mp/Packets/Player/PlayerPacket.hpp | 10 ---------- components/openmw-mp/Packets/World/WorldPacket.hpp | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/components/openmw-mp/Packets/Player/PlayerPacket.hpp b/components/openmw-mp/Packets/Player/PlayerPacket.hpp index da0105cce..8d573d74e 100644 --- a/components/openmw-mp/Packets/Player/PlayerPacket.hpp +++ b/components/openmw-mp/Packets/Player/PlayerPacket.hpp @@ -25,16 +25,6 @@ namespace mwmp virtual void Send(BasePlayer *player, RakNet::AddressOrGUID destination); virtual void Read(BasePlayer *player); - static size_t headerSize() - { - return (size_t)(1 + RakNet::RakNetGUID::size()); // packetID + RakNetGUID (uint64_t) - } - - unsigned char GetPacketID() - { - return packetID; - } - protected: BasePlayer *player; diff --git a/components/openmw-mp/Packets/World/WorldPacket.hpp b/components/openmw-mp/Packets/World/WorldPacket.hpp index 727ec3de3..71b6a3e37 100644 --- a/components/openmw-mp/Packets/World/WorldPacket.hpp +++ b/components/openmw-mp/Packets/World/WorldPacket.hpp @@ -25,16 +25,6 @@ namespace mwmp virtual void Send(BaseEvent *event, RakNet::AddressOrGUID destination); virtual void Read(BaseEvent *event); - static size_t headerSize() - { - return (size_t)(1 + RakNet::RakNetGUID::size()); // packetID + RakNetGUID (uint64_t) - } - - unsigned char GetPacketID() - { - return packetID; - } - protected: BaseEvent *event;