chore(Core/Common): delete macro UNUSED (#6119)

This commit is contained in:
Kargatum
2021-06-01 22:22:29 +07:00
committed by GitHub
parent 501f5e2702
commit d398c34c61
5 changed files with 6 additions and 8 deletions

View File

@@ -104,8 +104,6 @@
#define SZFMTD "%" PRIuPTR
#define UNUSED(x) (void)(x)
typedef std::int64_t int64;
typedef std::int32_t int32;
typedef std::int16_t int16;

View File

@@ -61,7 +61,7 @@ inline std::string ReadSkip(std::istringstream& iss, char term)
inline bool CheckDelimiter(std::istringstream& iss, char delimiter, const char* context)
{
UNUSED(context); // used only with EXTRA_LOGS
(void)context; // used only with EXTRA_LOGS
char c = iss.peek();
if (c != delimiter)
{

View File

@@ -179,8 +179,8 @@ namespace lfg
void LFGGroupScript::OnRemoveMember(Group* group, ObjectGuid guid, RemoveMethod method, ObjectGuid kicker, char const* reason)
{
// used only with EXTRA_LOGS
UNUSED(kicker);
UNUSED(reason);
(void)kicker;
(void)reason;
if (!sLFGMgr->isOptionEnabled(LFG_OPTION_ENABLE_DUNGEON_FINDER | LFG_OPTION_ENABLE_RAID_BROWSER))
return;
@@ -280,7 +280,7 @@ namespace lfg
void LFGGroupScript::OnInviteMember(Group* group, ObjectGuid guid)
{
// used only with EXTRA_LOGS
UNUSED(guid);
(void)guid;
if (!sLFGMgr->isOptionEnabled(LFG_OPTION_ENABLE_DUNGEON_FINDER | LFG_OPTION_ENABLE_RAID_BROWSER))
return;

View File

@@ -812,7 +812,7 @@ void WorldSession::HandleChatIgnoredOpcode(WorldPacket& recvData)
void WorldSession::HandleChannelDeclineInvite(WorldPacket& recvPacket)
{
// used only with EXTRA_LOGS
UNUSED(recvPacket);
(void)recvPacket;
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
LOG_DEBUG("network", "Opcode %u", recvPacket.GetOpcode());

View File

@@ -6812,7 +6812,7 @@ void AuraEffect::HandleProcTriggerSpellWithValueAuraProc(AuraApplication* aurApp
if (SpellInfo const* triggeredSpellInfo = sSpellMgr->GetSpellInfo(triggerSpellId))
{
// used only with EXTRA_LOGS
UNUSED(triggeredSpellInfo);
(void)triggeredSpellInfo;
int32 basepoints0 = GetAmount();
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)