mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-04 19:43:48 +00:00
chore(Core/Common): delete macro UNUSED (#6119)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user