From d9ffc337247c08a2282a2d4c48ef31a70d22ae23 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 10 Mar 2024 02:39:59 +0100 Subject: Core/DataStores: duc-taped build --- src/server/game/Chat/Hyperlinks.cpp | 55 ------------------------------------- 1 file changed, 55 deletions(-) (limited to 'src/server/game/Chat/Hyperlinks.cpp') diff --git a/src/server/game/Chat/Hyperlinks.cpp b/src/server/game/Chat/Hyperlinks.cpp index 2d991fd05bf..d15a17f2c6d 100644 --- a/src/server/game/Chat/Hyperlinks.cpp +++ b/src/server/game/Chat/Hyperlinks.cpp @@ -233,22 +233,6 @@ struct LinkValidator } }; -template <> -struct LinkValidator -{ - static bool IsTextValid(SoulbindConduitRankEntry const* rank, std::string_view text) - { - if (SpellInfo const* info = sSpellMgr->GetSpellInfo(rank->SpellID, DIFFICULTY_NONE)) - return LinkValidator::IsTextValid(info, text); - return false; - } - - static bool IsColorValid(SoulbindConduitRankEntry const*, HyperlinkColor c) - { - return c == CHAT_LINK_COLOR_SPELL; - } -}; - template <> struct LinkValidator { @@ -497,22 +481,6 @@ struct LinkValidator } }; -template <> -struct LinkValidator -{ - static bool IsTextValid(MawPowerEntry const* mawPower, std::string_view text) - { - if (SpellInfo const* info = sSpellMgr->GetSpellInfo(mawPower->SpellID, DIFFICULTY_NONE)) - return LinkValidator::IsTextValid(info, text); - return false; - } - - static bool IsColorValid(MawPowerEntry const*, HyperlinkColor c) - { - return c == CHAT_LINK_COLOR_SPELL; - } -}; - template <> struct LinkValidator { @@ -603,26 +571,6 @@ struct LinkValidator } }; -template <> -struct LinkValidator -{ - static bool IsTextValid(SpellItemEnchantmentEntry const* enchantment, std::string_view text) - { - for (LocaleConstant i = LOCALE_enUS; i < TOTAL_LOCALES; i = LocaleConstant(i + 1)) - if (enchantment->Name[i] == text) - return true; - for (LocaleConstant i = LOCALE_enUS; i < TOTAL_LOCALES; i = LocaleConstant(i + 1)) - if (enchantment->HordeName[i] == text) - return true; - return false; - } - - static bool IsColorValid(SpellItemEnchantmentEntry const*, HyperlinkColor c) - { - return c == CHAT_LINK_COLOR_TRANSMOG; - } -}; - template <> struct LinkValidator { @@ -698,7 +646,6 @@ static bool ValidateLinkInfo(HyperlinkInfo const& info) TryValidateAs(battlePetAbil); TryValidateAs(clubFinder); TryValidateAs(clubTicket); - TryValidateAs(conduit); TryValidateAs(creature); TryValidateAs(creature_entry); TryValidateAs(currency); @@ -715,7 +662,6 @@ static bool ValidateLinkInfo(HyperlinkInfo const& info) TryValidateAs(itemset); TryValidateAs(journal); TryValidateAs(keystone); - TryValidateAs(mawpower); TryValidateAs(mount); TryValidateAs(outfit); TryValidateAs(player); @@ -730,7 +676,6 @@ static bool ValidateLinkInfo(HyperlinkInfo const& info) TryValidateAs(title); TryValidateAs(trade); TryValidateAs(transmogappearance); - TryValidateAs(transmogillusion); TryValidateAs(transmogset); TryValidateAs(worldmap); return false; -- cgit v1.2.3