chore(Core/Common): delete macro UNUSED (#6119)
This commit is contained in:
@@ -104,8 +104,6 @@
|
|||||||
|
|
||||||
#define SZFMTD "%" PRIuPTR
|
#define SZFMTD "%" PRIuPTR
|
||||||
|
|
||||||
#define UNUSED(x) (void)(x)
|
|
||||||
|
|
||||||
typedef std::int64_t int64;
|
typedef std::int64_t int64;
|
||||||
typedef std::int32_t int32;
|
typedef std::int32_t int32;
|
||||||
typedef std::int16_t int16;
|
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)
|
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();
|
char c = iss.peek();
|
||||||
if (c != delimiter)
|
if (c != delimiter)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -179,8 +179,8 @@ namespace lfg
|
|||||||
void LFGGroupScript::OnRemoveMember(Group* group, ObjectGuid guid, RemoveMethod method, ObjectGuid kicker, char const* reason)
|
void LFGGroupScript::OnRemoveMember(Group* group, ObjectGuid guid, RemoveMethod method, ObjectGuid kicker, char const* reason)
|
||||||
{
|
{
|
||||||
// used only with EXTRA_LOGS
|
// used only with EXTRA_LOGS
|
||||||
UNUSED(kicker);
|
(void)kicker;
|
||||||
UNUSED(reason);
|
(void)reason;
|
||||||
|
|
||||||
if (!sLFGMgr->isOptionEnabled(LFG_OPTION_ENABLE_DUNGEON_FINDER | LFG_OPTION_ENABLE_RAID_BROWSER))
|
if (!sLFGMgr->isOptionEnabled(LFG_OPTION_ENABLE_DUNGEON_FINDER | LFG_OPTION_ENABLE_RAID_BROWSER))
|
||||||
return;
|
return;
|
||||||
@@ -280,7 +280,7 @@ namespace lfg
|
|||||||
void LFGGroupScript::OnInviteMember(Group* group, ObjectGuid guid)
|
void LFGGroupScript::OnInviteMember(Group* group, ObjectGuid guid)
|
||||||
{
|
{
|
||||||
// used only with EXTRA_LOGS
|
// used only with EXTRA_LOGS
|
||||||
UNUSED(guid);
|
(void)guid;
|
||||||
|
|
||||||
if (!sLFGMgr->isOptionEnabled(LFG_OPTION_ENABLE_DUNGEON_FINDER | LFG_OPTION_ENABLE_RAID_BROWSER))
|
if (!sLFGMgr->isOptionEnabled(LFG_OPTION_ENABLE_DUNGEON_FINDER | LFG_OPTION_ENABLE_RAID_BROWSER))
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -812,7 +812,7 @@ void WorldSession::HandleChatIgnoredOpcode(WorldPacket& recvData)
|
|||||||
void WorldSession::HandleChannelDeclineInvite(WorldPacket& recvPacket)
|
void WorldSession::HandleChannelDeclineInvite(WorldPacket& recvPacket)
|
||||||
{
|
{
|
||||||
// used only with EXTRA_LOGS
|
// used only with EXTRA_LOGS
|
||||||
UNUSED(recvPacket);
|
(void)recvPacket;
|
||||||
|
|
||||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||||
LOG_DEBUG("network", "Opcode %u", recvPacket.GetOpcode());
|
LOG_DEBUG("network", "Opcode %u", recvPacket.GetOpcode());
|
||||||
|
|||||||
@@ -6812,7 +6812,7 @@ void AuraEffect::HandleProcTriggerSpellWithValueAuraProc(AuraApplication* aurApp
|
|||||||
if (SpellInfo const* triggeredSpellInfo = sSpellMgr->GetSpellInfo(triggerSpellId))
|
if (SpellInfo const* triggeredSpellInfo = sSpellMgr->GetSpellInfo(triggerSpellId))
|
||||||
{
|
{
|
||||||
// used only with EXTRA_LOGS
|
// used only with EXTRA_LOGS
|
||||||
UNUSED(triggeredSpellInfo);
|
(void)triggeredSpellInfo;
|
||||||
|
|
||||||
int32 basepoints0 = GetAmount();
|
int32 basepoints0 = GetAmount();
|
||||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||||
|
|||||||
Reference in New Issue
Block a user