From 1f6d05dfe553121e18a60495201016a1ad84728e Mon Sep 17 00:00:00 2001 From: David Cernat Date: Tue, 18 Apr 2017 17:45:26 +0300 Subject: [PATCH] [Client] Remove unused Networking::attack() method --- apps/openmw/mwmp/Networking.cpp | 10 ---------- apps/openmw/mwmp/Networking.hpp | 1 - 2 files changed, 11 deletions(-) diff --git a/apps/openmw/mwmp/Networking.cpp b/apps/openmw/mwmp/Networking.cpp index 883d39ead..db0c32bbf 100644 --- a/apps/openmw/mwmp/Networking.cpp +++ b/apps/openmw/mwmp/Networking.cpp @@ -308,16 +308,6 @@ bool Networking::isDedicatedPlayer(const MWWorld::Ptr &ptr) return pl != 0; } -bool Networking::attack(const MWWorld::Ptr &ptr) -{ - DedicatedPlayer *pl = PlayerList::getPlayer(ptr); - - if (pl == 0) - return false; - - return pl->attack.pressed; -} - bool Networking::isConnected() { return connected; diff --git a/apps/openmw/mwmp/Networking.hpp b/apps/openmw/mwmp/Networking.hpp index 49f256669..61f0a4445 100644 --- a/apps/openmw/mwmp/Networking.hpp +++ b/apps/openmw/mwmp/Networking.hpp @@ -36,7 +36,6 @@ namespace mwmp WorldPacket *getWorldPacket(RakNet::MessageID id); bool isDedicatedPlayer(const MWWorld::Ptr &ptr); - bool attack(const MWWorld::Ptr &ptr); RakNet::SystemAddress serverAddress() {