mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-04 19:43:48 +00:00
refactor(src/common): remove unused imports (#19506)
* refactor(src/common): remove unused imports * fix: build * chore: fix build * chore: size_t -> std::size_t * chore: fix fuckup from previous commit * chore: fix build * chore: fix build * chore: fix build * chore: fix build with std::size_t * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build
This commit is contained in:
@@ -168,7 +168,7 @@ union keyData
|
||||
uint32 Warden::BuildChecksum(const uint8* data, uint32 length)
|
||||
{
|
||||
keyData hash{};
|
||||
hash.bytes = Acore::Crypto::SHA1::GetDigestOf(data, size_t(length));
|
||||
hash.bytes = Acore::Crypto::SHA1::GetDigestOf(data, std::size_t(length));
|
||||
uint32 checkSum = 0;
|
||||
|
||||
for (uint8 i = 0; i < 5; ++i)
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include "WardenMac.h"
|
||||
#include "ByteBuffer.h"
|
||||
#include "CryptoHash.h"
|
||||
#include "Log.h"
|
||||
#include "Opcodes.h"
|
||||
#include "Player.h"
|
||||
|
||||
@@ -128,7 +128,7 @@ void WardenPayloadMgr::QueuePayload(uint16 payloadId, bool pushToFront)
|
||||
|
||||
bool WardenPayloadMgr::DequeuePayload(uint16 payloadId)
|
||||
{
|
||||
size_t const queueSize = QueuedPayloads.size();
|
||||
std::size_t const queueSize = QueuedPayloads.size();
|
||||
QueuedPayloads.remove(payloadId);
|
||||
|
||||
return queueSize != QueuedPayloads.size();
|
||||
|
||||
@@ -39,10 +39,10 @@ AC_API_EXPORT EnumText EnumUtils<WardenActions>::ToString(WardenActions value)
|
||||
}
|
||||
|
||||
template <>
|
||||
AC_API_EXPORT size_t EnumUtils<WardenActions>::Count() { return 3; }
|
||||
AC_API_EXPORT std::size_t EnumUtils<WardenActions>::Count() { return 3; }
|
||||
|
||||
template <>
|
||||
AC_API_EXPORT WardenActions EnumUtils<WardenActions>::FromIndex(size_t index)
|
||||
AC_API_EXPORT WardenActions EnumUtils<WardenActions>::FromIndex(std::size_t index)
|
||||
{
|
||||
switch (index)
|
||||
{
|
||||
@@ -54,7 +54,7 @@ AC_API_EXPORT WardenActions EnumUtils<WardenActions>::FromIndex(size_t index)
|
||||
}
|
||||
|
||||
template <>
|
||||
AC_API_EXPORT size_t EnumUtils<WardenActions>::ToIndex(WardenActions value)
|
||||
AC_API_EXPORT std::size_t EnumUtils<WardenActions>::ToIndex(WardenActions value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user