refactor(Core): code cleanup (part 3) (#6380)

This commit is contained in:
Francesco Borzì
2021-06-19 01:25:29 +02:00
committed by GitHub
parent 4d20442a1e
commit 23e9b85d0e
31 changed files with 34 additions and 65 deletions

View File

@@ -8,7 +8,6 @@
#include "Errors.h"
#include <utf8.h>
#include <sstream>
#include <array>
WorldPackets::InvalidStringValueException::InvalidStringValueException(std::string const& value) :
ByteBufferInvalidValueException("string", value.c_str()) { }

View File

@@ -1430,7 +1430,7 @@ void OpcodeTable::Initialize()
#undef DEFINE_HANDLER
#undef DEFINE_SERVER_OPCODE_HANDLER
};
}
template<typename T>
inline std::string GetOpcodeNameForLoggingImpl(T id)

View File

@@ -86,7 +86,7 @@ bool WorldSessionFilter::Process(WorldPacket* packet)
return true;
//lets process all packets for non-in-the-world player
return (player->IsInWorld() == false);
return !player->IsInWorld();
}
/// WorldSession constructor

View File

@@ -5,7 +5,6 @@
*/
#include "AccountMgr.h"
#include "BigNumber.h"
#include "ByteBuffer.h"
#include "Common.h"
#include "CryptoHash.h"

View File

@@ -9,7 +9,6 @@
* \author Derex <derex101@gmail.com>
*/
#include "Common.h"
#include "Config.h"
#include "DatabaseEnv.h"
#include "Log.h"
@@ -23,7 +22,6 @@
#include <ace/os_include/arpa/os_inet.h>
#include <ace/os_include/netinet/os_tcp.h>
#include <ace/os_include/sys/os_socket.h>
#include <ace/os_include/sys/os_types.h>
#include <ace/Reactor_Impl.h>
#include <ace/Reactor.h>
#include <ace/TP_Reactor.h>