[General] Delete invalid & redundant code

coverity_scan^2
Koncord 8 years ago
parent 0d6636018f
commit e3f4c63ea6

@ -25,16 +25,6 @@ namespace mwmp
virtual void Send(BasePlayer *player, RakNet::AddressOrGUID destination); virtual void Send(BasePlayer *player, RakNet::AddressOrGUID destination);
virtual void Read(BasePlayer *player); 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: protected:
BasePlayer *player; BasePlayer *player;

@ -25,16 +25,6 @@ namespace mwmp
virtual void Send(BaseEvent *event, RakNet::AddressOrGUID destination); virtual void Send(BaseEvent *event, RakNet::AddressOrGUID destination);
virtual void Read(BaseEvent *event); 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: protected:
BaseEvent *event; BaseEvent *event;

Loading…
Cancel
Save