diff --git a/src/common/Cryptography/AES.h b/src/common/Cryptography/AES.h index dffd893ea..1c0466aa7 100644 --- a/src/common/Cryptography/AES.h +++ b/src/common/Cryptography/AES.h @@ -23,7 +23,7 @@ namespace Acore::Crypto using Key = std::array; using Tag = uint8[TAG_SIZE_BYTES]; - AES(bool encrypting); + explicit AES(bool encrypting); ~AES(); void Init(Key const& key); diff --git a/src/common/Metric/Metric.cpp b/src/common/Metric/Metric.cpp index 312726399..e8106d5c2 100644 --- a/src/common/Metric/Metric.cpp +++ b/src/common/Metric/Metric.cpp @@ -16,13 +16,11 @@ */ #include "Metric.h" -#include "Common.h" #include "Config.h" #include "DeadlineTimer.h" #include "Log.h" #include "Strand.h" #include "Tokenize.h" -#include "Util.h" #include #include diff --git a/src/common/Threading/ProcessPriority.cpp b/src/common/Threading/ProcessPriority.cpp index 4490cd866..bca9d6dca 100644 --- a/src/common/Threading/ProcessPriority.cpp +++ b/src/common/Threading/ProcessPriority.cpp @@ -16,11 +16,11 @@ */ #include "ProcessPriority.h" -#include "Log.h" #ifdef _WIN32 // Windows #include #elif defined(__linux__) +#include "Log.h" #include #include #define PROCESS_HIGH_PRIORITY -15 // [-20, 19], default is 0 diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp index 7a817d1a0..39f78334f 100644 --- a/src/server/game/AI/CoreAI/PetAI.cpp +++ b/src/server/game/AI/CoreAI/PetAI.cpp @@ -27,7 +27,6 @@ #include "SpellInfo.h" #include "SpellMgr.h" #include "Util.h" -#include "WorldSession.h" int PetAI::Permissible(const Creature* creature) { diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp index 1d523f334..0ccce7781 100644 --- a/src/server/game/AI/CreatureAI.cpp +++ b/src/server/game/AI/CreatureAI.cpp @@ -23,7 +23,6 @@ #include "Log.h" #include "MapReference.h" #include "Player.h" -#include "SpellMgr.h" #include "Vehicle.h" class PhasedRespawn : public BasicEvent diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index d66739968..44ea7207e 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -16,14 +16,11 @@ */ #include "SmartAI.h" -#include "Cell.h" #include "CellImpl.h" -#include "DatabaseEnv.h" #include "GridDefines.h" #include "GridNotifiers.h" #include "GridNotifiersImpl.h" #include "Group.h" -#include "InstanceScript.h" #include "ObjectDefines.h" #include "ObjectMgr.h" #include "ScriptMgr.h" diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp index eafc2c828..b3415c73c 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -16,9 +16,7 @@ */ #include "SmartScriptMgr.h" -#include "Cell.h" #include "CellImpl.h" -#include "CreatureTextMgr.h" #include "DatabaseEnv.h" #include "GameEventMgr.h" #include "GridDefines.h" diff --git a/src/server/game/Addons/AddonMgr.cpp b/src/server/game/Addons/AddonMgr.cpp index b6aac337e..c24933cd1 100644 --- a/src/server/game/Addons/AddonMgr.cpp +++ b/src/server/game/Addons/AddonMgr.cpp @@ -77,7 +77,7 @@ namespace AddonMgr { Field* fields = result->Fetch(); - BannedAddon addon; + BannedAddon addon{}; addon.Id = fields[0].GetUInt32() + offset; addon.Timestamp = uint32(fields[3].GetUInt64()); @@ -113,11 +113,12 @@ namespace AddonMgr SavedAddon const* GetAddonInfo(const std::string& name) { - for (SavedAddonsList::const_iterator it = m_knownAddons.begin(); it != m_knownAddons.end(); ++it) + for (auto const& addon : m_knownAddons) { - SavedAddon const& addon = (*it); if (addon.Name == name) + { return &addon; + } } return nullptr; diff --git a/src/server/game/AuctionHouse/AuctionHouseMgr.cpp b/src/server/game/AuctionHouse/AuctionHouseMgr.cpp index 49cf8f5b3..0f79d2fdc 100644 --- a/src/server/game/AuctionHouse/AuctionHouseMgr.cpp +++ b/src/server/game/AuctionHouse/AuctionHouseMgr.cpp @@ -29,7 +29,6 @@ #include "ScriptMgr.h" #include "World.h" #include "WorldPacket.h" -#include "WorldSession.h" #include constexpr auto AH_MINIMUM_DEPOSIT = 100; diff --git a/src/server/game/Battlefield/BattlefieldHandler.cpp b/src/server/game/Battlefield/BattlefieldHandler.cpp index 1711411b3..6108e3ab4 100644 --- a/src/server/game/Battlefield/BattlefieldHandler.cpp +++ b/src/server/game/Battlefield/BattlefieldHandler.cpp @@ -17,8 +17,6 @@ #include "Battlefield.h" #include "BattlefieldMgr.h" -#include "Common.h" -#include "ObjectAccessor.h" #include "ObjectMgr.h" #include "Opcodes.h" #include "Player.h" diff --git a/src/server/game/Battlefield/BattlefieldMgr.cpp b/src/server/game/Battlefield/BattlefieldMgr.cpp index 09f19bb93..374112f53 100644 --- a/src/server/game/Battlefield/BattlefieldMgr.cpp +++ b/src/server/game/Battlefield/BattlefieldMgr.cpp @@ -16,7 +16,6 @@ */ #include "BattlefieldMgr.h" -#include "ObjectMgr.h" #include "Player.h" #include "Zones/BattlefieldWG.h" diff --git a/src/server/game/Battlegrounds/BattlegroundMgr.cpp b/src/server/game/Battlegrounds/BattlegroundMgr.cpp index 63c9bed72..43fcaffb5 100644 --- a/src/server/game/Battlegrounds/BattlegroundMgr.cpp +++ b/src/server/game/Battlegrounds/BattlegroundMgr.cpp @@ -37,7 +37,6 @@ #include "GameEventMgr.h" #include "GameGraveyard.h" #include "Map.h" -#include "MapInstanced.h" #include "MapMgr.h" #include "ObjectMgr.h" #include "Opcodes.h" @@ -45,7 +44,6 @@ #include "SharedDefines.h" #include "World.h" #include "WorldPacket.h" -#include #include /*********************************************************/ diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundBE.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundBE.cpp index 2801ffe3c..900735fd7 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundBE.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundBE.cpp @@ -18,11 +18,8 @@ #include "BattlegroundBE.h" #include "Language.h" #include "Log.h" -#include "Object.h" -#include "ObjectMgr.h" #include "Player.h" #include "WorldPacket.h" -#include "WorldSession.h" BattlegroundBE::BattlegroundBE() { diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp index cdb40d311..1d6d617b9 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp @@ -20,7 +20,6 @@ #include "Creature.h" #include "GameGraveyard.h" #include "Language.h" -#include "Object.h" #include "ObjectMgr.h" #include "Player.h" #include "Util.h" diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundNA.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundNA.cpp index c67dab9e9..6132f1925 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundNA.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundNA.cpp @@ -17,11 +17,9 @@ #include "BattlegroundNA.h" #include "Language.h" -#include "Object.h" #include "ObjectMgr.h" #include "Player.h" #include "WorldPacket.h" -#include "WorldSession.h" BattlegroundNA::BattlegroundNA() { diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundRL.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundRL.cpp index 1647022b4..670218896 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundRL.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundRL.cpp @@ -20,7 +20,6 @@ #include "Log.h" #include "Player.h" #include "WorldPacket.h" -#include "WorldSession.h" BattlegroundRL::BattlegroundRL() { diff --git a/src/server/game/Cache/CharacterCache.cpp b/src/server/game/Cache/CharacterCache.cpp index bec363b49..79941e88b 100644 --- a/src/server/game/Cache/CharacterCache.cpp +++ b/src/server/game/Cache/CharacterCache.cpp @@ -22,7 +22,6 @@ #include "Player.h" #include "Timer.h" #include "World.h" -#include "WorldPacket.h" #include namespace diff --git a/src/server/game/Cache/WhoListCacheMgr.cpp b/src/server/game/Cache/WhoListCacheMgr.cpp index bebd3e8c6..ec48a7e8e 100644 --- a/src/server/game/Cache/WhoListCacheMgr.cpp +++ b/src/server/game/Cache/WhoListCacheMgr.cpp @@ -18,9 +18,7 @@ #include "WhoListCacheMgr.h" #include "GuildMgr.h" #include "ObjectAccessor.h" -#include "Player.h" #include "World.h" -#include "WorldSession.h" WhoListCacheMgr* WhoListCacheMgr::instance() { diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp index a8a1fb976..5edb60e57 100644 --- a/src/server/game/Chat/Chat.cpp +++ b/src/server/game/Chat/Chat.cpp @@ -19,7 +19,6 @@ #include "AccountMgr.h" #include "CellImpl.h" #include "Common.h" -#include "DatabaseEnv.h" #include "GridNotifiersImpl.h" #include "Language.h" #include "Log.h" diff --git a/src/server/game/Chat/ChatCommands/ChatCommandArgs.cpp b/src/server/game/Chat/ChatCommands/ChatCommandArgs.cpp index 3e474b434..44d77f933 100644 --- a/src/server/game/Chat/ChatCommands/ChatCommandArgs.cpp +++ b/src/server/game/Chat/ChatCommands/ChatCommandArgs.cpp @@ -17,7 +17,6 @@ #include "ChatCommandArgs.h" #include "AchievementMgr.h" -#include "ChatCommand.h" #include "ObjectMgr.h" #include "SpellMgr.h" #include "Util.h" diff --git a/src/server/game/DataStores/DBCStores.cpp b/src/server/game/DataStores/DBCStores.cpp index 6afc5f746..34f52cd3c 100644 --- a/src/server/game/DataStores/DBCStores.cpp +++ b/src/server/game/DataStores/DBCStores.cpp @@ -26,7 +26,6 @@ #include "TransportMgr.h" #include "World.h" #include -#include #include #include diff --git a/src/server/game/DungeonFinding/LFGScripts.cpp b/src/server/game/DungeonFinding/LFGScripts.cpp index 15f03494b..6a63fb3c7 100644 --- a/src/server/game/DungeonFinding/LFGScripts.cpp +++ b/src/server/game/DungeonFinding/LFGScripts.cpp @@ -26,7 +26,6 @@ #include "Player.h" #include "ScriptMgr.h" #include "SharedDefines.h" -#include "WorldSession.h" namespace lfg { diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index 5a3ebd7d4..712a5b751 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -52,6 +52,7 @@ // TODO: this import is not necessary for compilation and marked as unused by the IDE // however, for some reasons removing it would cause a damn linking issue // there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 #include "GridNotifiersImpl.h" TrainerSpell const* TrainerSpellData::Find(uint32 spell_id) const diff --git a/src/server/game/Entities/Object/Object.cpp b/src/server/game/Entities/Object/Object.cpp index 5b786dfbf..2034ddc0c 100644 --- a/src/server/game/Entities/Object/Object.cpp +++ b/src/server/game/Entities/Object/Object.cpp @@ -20,7 +20,6 @@ #include "BattlefieldMgr.h" #include "CellImpl.h" #include "Chat.h" -#include "Common.h" #include "Creature.h" #include "DynamicTree.h" #include "DynamicVisibility.h" @@ -53,6 +52,7 @@ // TODO: this import is not necessary for compilation and marked as unused by the IDE // however, for some reasons removing it would cause a damn linking issue // there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 #include "GridNotifiersImpl.h" constexpr float VisibilityDistances[AsUnderlyingType(VisibilityDistanceType::Max)] = diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 50457a762..031d12ea4 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -28,7 +28,6 @@ #include "BattlegroundMgr.h" #include "CellImpl.h" #include "Channel.h" -#include "ChannelMgr.h" #include "CharacterCache.h" #include "CharacterDatabaseCleaner.h" #include "Chat.h" @@ -42,10 +41,8 @@ #include "GameEventMgr.h" #include "GameGraveyard.h" #include "GameObjectAI.h" -#include "GitRevision.h" #include "GossipDef.h" #include "GridNotifiers.h" -#include "GridNotifiersImpl.h" #include "Group.h" #include "GroupMgr.h" #include "Guild.h" @@ -56,7 +53,6 @@ #include "LFGMgr.h" #include "Log.h" #include "LootItemStorage.h" -#include "MapInstanced.h" #include "MapMgr.h" #include "ObjectAccessor.h" #include "ObjectMgr.h" @@ -66,14 +62,12 @@ #include "Pet.h" #include "PetitionMgr.h" #include "Player.h" -#include "PoolMgr.h" #include "QuestDef.h" #include "QueryHolder.h" #include "ReputationMgr.h" #include "Realm.h" #include "SavingSystem.h" #include "ScriptMgr.h" -#include "SkillDiscovery.h" #include "SocialMgr.h" #include "Spell.h" #include "SpellAuraEffects.h" @@ -92,6 +86,12 @@ #include "WorldPacket.h" #include "WorldSession.h" +// TODO: this import is not necessary for compilation and marked as unused by the IDE +// however, for some reasons removing it would cause a damn linking issue +// there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 +#include "GridNotifiersImpl.h" + enum CharacterFlags { CHARACTER_FLAG_NONE = 0x00000000, diff --git a/src/server/game/Entities/Player/PlayerStorage.cpp b/src/server/game/Entities/Player/PlayerStorage.cpp index 0dd417e64..bfec5dc78 100644 --- a/src/server/game/Entities/Player/PlayerStorage.cpp +++ b/src/server/game/Entities/Player/PlayerStorage.cpp @@ -74,7 +74,12 @@ #include "WeatherMgr.h" #include "World.h" #include "WorldPacket.h" -#include "WorldSession.h" + +// TODO: this import is not necessary for compilation and marked as unused by the IDE +// however, for some reasons removing it would cause a damn linking issue +// there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 +#include "GridNotifiersImpl.h" /*********************************************************/ /*** STORAGE SYSTEM ***/ diff --git a/src/server/game/Entities/Player/PlayerUpdates.cpp b/src/server/game/Entities/Player/PlayerUpdates.cpp index 9477c6007..6e129e946 100644 --- a/src/server/game/Entities/Player/PlayerUpdates.cpp +++ b/src/server/game/Entities/Player/PlayerUpdates.cpp @@ -21,7 +21,6 @@ #include "ChannelMgr.h" #include "Formulas.h" #include "GridNotifiers.h" -#include "GridNotifiersImpl.h" #include "Group.h" #include "Guild.h" #include "InstanceScript.h" @@ -38,6 +37,12 @@ #include "Vehicle.h" #include "WeatherMgr.h" +// TODO: this import is not necessary for compilation and marked as unused by the IDE +// however, for some reasons removing it would cause a damn linking issue +// there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 +#include "GridNotifiersImpl.h" + // Zone Interval should be 1 second constexpr auto ZONE_UPDATE_INTERVAL = 1000; diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 6c2963cf7..bc16b413e 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -28,7 +28,6 @@ #include "Common.h" #include "ConditionMgr.h" #include "Creature.h" -#include "CreatureAI.h" #include "CreatureAIImpl.h" #include "CreatureGroups.h" #include "DisableMgr.h" @@ -50,7 +49,6 @@ #include "Pet.h" #include "PetAI.h" #include "Player.h" -#include "QuestDef.h" #include "ReputationMgr.h" #include "Spell.h" #include "SpellAuraEffects.h" @@ -67,7 +65,6 @@ #include "Vehicle.h" #include "World.h" #include "WorldPacket.h" -#include "WorldSession.h" #include float baseMoveSpeed[MAX_MOVE_TYPE] = diff --git a/src/server/game/Entities/Vehicle/Vehicle.cpp b/src/server/game/Entities/Vehicle/Vehicle.cpp index 7fea98e83..55febe787 100644 --- a/src/server/game/Entities/Vehicle/Vehicle.cpp +++ b/src/server/game/Entities/Vehicle/Vehicle.cpp @@ -17,7 +17,6 @@ #include "Vehicle.h" #include "BattlefieldWG.h" -#include "Common.h" #include "CreatureAI.h" #include "Log.h" #include "MoveSplineInit.h" @@ -28,7 +27,6 @@ #include "TemporarySummon.h" #include "Unit.h" #include "Util.h" -#include "WorldPacket.h" Vehicle::Vehicle(Unit* unit, VehicleEntry const* vehInfo, uint32 creatureEntry) : _me(unit), _vehicleInfo(vehInfo), _usableSeatNum(0), _creatureEntry(creatureEntry), _status(STATUS_NONE) diff --git a/src/server/game/Handlers/AddonHandler.cpp b/src/server/game/Handlers/AddonHandler.cpp index 44b21f6af..ae864f6e5 100644 --- a/src/server/game/Handlers/AddonHandler.cpp +++ b/src/server/game/Handlers/AddonHandler.cpp @@ -16,7 +16,6 @@ */ #include "AddonHandler.h" -#include "DatabaseEnv.h" #include "Log.h" #include "Opcodes.h" #include "zlib.h" diff --git a/src/server/game/Handlers/NPCHandler.cpp b/src/server/game/Handlers/NPCHandler.cpp index 81f124733..a57f6caa7 100644 --- a/src/server/game/Handlers/NPCHandler.cpp +++ b/src/server/game/Handlers/NPCHandler.cpp @@ -21,7 +21,6 @@ #include "DatabaseEnv.h" #include "GameGraveyard.h" #include "Language.h" -#include "ObjectAccessor.h" #include "ObjectMgr.h" #include "Opcodes.h" #include "Pet.h" diff --git a/src/server/game/Handlers/SkillHandler.cpp b/src/server/game/Handlers/SkillHandler.cpp index 86d2d1fae..6fe8650d5 100644 --- a/src/server/game/Handlers/SkillHandler.cpp +++ b/src/server/game/Handlers/SkillHandler.cpp @@ -16,7 +16,6 @@ */ #include "Log.h" -#include "ObjectAccessor.h" #include "Opcodes.h" #include "Pet.h" #include "Player.h" diff --git a/src/server/game/Mails/Mail.cpp b/src/server/game/Mails/Mail.cpp index 1d5cdb9a0..ea5a1f693 100644 --- a/src/server/game/Mails/Mail.cpp +++ b/src/server/game/Mails/Mail.cpp @@ -28,7 +28,6 @@ #include "ScriptMgr.h" #include "Unit.h" #include "World.h" -#include "WorldSession.h" MailSender::MailSender(Object* sender, MailStationery stationery) : m_stationery(stationery) { diff --git a/src/server/game/Misc/AsyncAuctionListing.cpp b/src/server/game/Misc/AsyncAuctionListing.cpp index e40de57ad..d52908e1e 100644 --- a/src/server/game/Misc/AsyncAuctionListing.cpp +++ b/src/server/game/Misc/AsyncAuctionListing.cpp @@ -21,7 +21,6 @@ #include "Opcodes.h" #include "Player.h" #include "SpellAuraEffects.h" -#include "WorldSession.h" uint32 AsyncAuctionListingMgr::auctionListingDiff = 0; bool AsyncAuctionListingMgr::auctionListingAllowed = false; diff --git a/src/server/game/Misc/BanMgr.cpp b/src/server/game/Misc/BanMgr.cpp index 90f0c4539..8d1f979c1 100644 --- a/src/server/game/Misc/BanMgr.cpp +++ b/src/server/game/Misc/BanMgr.cpp @@ -20,7 +20,6 @@ #include "DatabaseEnv.h" #include "Language.h" #include "ObjectAccessor.h" -#include "ObjectMgr.h" #include "Player.h" #include "ScriptMgr.h" #include "World.h" diff --git a/src/server/game/Motd/ServerMotd.cpp b/src/server/game/Motd/ServerMotd.cpp index 2ae805a60..cd3b80532 100644 --- a/src/server/game/Motd/ServerMotd.cpp +++ b/src/server/game/Motd/ServerMotd.cpp @@ -16,7 +16,6 @@ */ #include "ServerMotd.h" -#include "Common.h" #include "Opcodes.h" #include "ScriptMgr.h" #include "Util.h" diff --git a/src/server/game/Scripting/ScriptDefines/AchievementCriteriaScript.cpp b/src/server/game/Scripting/ScriptDefines/AchievementCriteriaScript.cpp index 871dc8865..8031a2524 100644 --- a/src/server/game/Scripting/ScriptDefines/AchievementCriteriaScript.cpp +++ b/src/server/game/Scripting/ScriptDefines/AchievementCriteriaScript.cpp @@ -16,7 +16,6 @@ */ #include "ScriptMgr.h" -#include "ScriptMgrMacros.h" bool ScriptMgr::OnCriteriaCheck(uint32 scriptId, Player* source, Unit* target, uint32 criteria_id) { diff --git a/src/server/game/Scripting/ScriptDefines/BattlegroundScript.cpp b/src/server/game/Scripting/ScriptDefines/BattlegroundScript.cpp index 90aee0057..f746906de 100644 --- a/src/server/game/Scripting/ScriptDefines/BattlegroundScript.cpp +++ b/src/server/game/Scripting/ScriptDefines/BattlegroundScript.cpp @@ -16,7 +16,6 @@ */ #include "ScriptMgr.h" -#include "ScriptMgrMacros.h" Battleground* ScriptMgr::CreateBattleground(BattlegroundTypeId /*typeId*/) { diff --git a/src/server/game/Scripting/ScriptDefines/CommandScript.cpp b/src/server/game/Scripting/ScriptDefines/CommandScript.cpp index 1aff3e3bb..7cd4e3728 100644 --- a/src/server/game/Scripting/ScriptDefines/CommandScript.cpp +++ b/src/server/game/Scripting/ScriptDefines/CommandScript.cpp @@ -16,7 +16,6 @@ */ #include "ScriptMgr.h" -#include "ScriptMgrMacros.h" #include "Chat.h" Acore::ChatCommands::ChatCommandTable ScriptMgr::GetChatCommands() diff --git a/src/server/game/Scripting/ScriptDefines/ConditionScript.cpp b/src/server/game/Scripting/ScriptDefines/ConditionScript.cpp index 68d239028..99aacfc82 100644 --- a/src/server/game/Scripting/ScriptDefines/ConditionScript.cpp +++ b/src/server/game/Scripting/ScriptDefines/ConditionScript.cpp @@ -16,7 +16,6 @@ */ #include "ScriptMgr.h" -#include "ScriptMgrMacros.h" bool ScriptMgr::OnConditionCheck(Condition* condition, ConditionSourceInfo& sourceInfo) { diff --git a/src/server/game/Scripting/ScriptDefines/DynamicObjectScript.cpp b/src/server/game/Scripting/ScriptDefines/DynamicObjectScript.cpp index 80f126930..cf2f3ebf1 100644 --- a/src/server/game/Scripting/ScriptDefines/DynamicObjectScript.cpp +++ b/src/server/game/Scripting/ScriptDefines/DynamicObjectScript.cpp @@ -16,7 +16,6 @@ */ #include "ScriptMgr.h" -#include "ScriptMgrMacros.h" void ScriptMgr::OnDynamicObjectUpdate(DynamicObject* dynobj, uint32 diff) { diff --git a/src/server/game/Scripting/ScriptDefines/InstanceMapScript.cpp b/src/server/game/Scripting/ScriptDefines/InstanceMapScript.cpp index 18f7a9eb8..4a08a49bc 100644 --- a/src/server/game/Scripting/ScriptDefines/InstanceMapScript.cpp +++ b/src/server/game/Scripting/ScriptDefines/InstanceMapScript.cpp @@ -16,7 +16,6 @@ */ #include "ScriptMgr.h" -#include "ScriptMgrMacros.h" InstanceScript* ScriptMgr::CreateInstanceScript(InstanceMap* map) { diff --git a/src/server/game/Scripting/ScriptDefines/OutdoorPvPScript.cpp b/src/server/game/Scripting/ScriptDefines/OutdoorPvPScript.cpp index 60ae644f8..c1332abb1 100644 --- a/src/server/game/Scripting/ScriptDefines/OutdoorPvPScript.cpp +++ b/src/server/game/Scripting/ScriptDefines/OutdoorPvPScript.cpp @@ -16,7 +16,6 @@ */ #include "ScriptMgr.h" -#include "ScriptMgrMacros.h" #include "OutdoorPvPMgr.h" OutdoorPvP* ScriptMgr::CreateOutdoorPvP(OutdoorPvPData const* data) diff --git a/src/server/game/Scripting/ScriptDefines/SpellScriptLoader.cpp b/src/server/game/Scripting/ScriptDefines/SpellScriptLoader.cpp index 8ee566638..c2e29ff79 100644 --- a/src/server/game/Scripting/ScriptDefines/SpellScriptLoader.cpp +++ b/src/server/game/Scripting/ScriptDefines/SpellScriptLoader.cpp @@ -16,7 +16,6 @@ */ #include "ScriptMgr.h" -#include "ScriptMgrMacros.h" #include "SpellScript.h" void ScriptMgr::CreateSpellScripts(uint32 spellId, std::list& scriptVector) diff --git a/src/server/game/Scripting/ScriptDefines/TransportScript.cpp b/src/server/game/Scripting/ScriptDefines/TransportScript.cpp index 90916d2e4..3b870ffa1 100644 --- a/src/server/game/Scripting/ScriptDefines/TransportScript.cpp +++ b/src/server/game/Scripting/ScriptDefines/TransportScript.cpp @@ -16,7 +16,6 @@ */ #include "ScriptMgr.h" -#include "ScriptMgrMacros.h" #include "Transport.h" void ScriptMgr::OnAddPassenger(Transport* transport, Player* player) diff --git a/src/server/game/Scripting/ScriptDefines/VehicleScript.cpp b/src/server/game/Scripting/ScriptDefines/VehicleScript.cpp index df6dd5967..2d9d1b746 100644 --- a/src/server/game/Scripting/ScriptDefines/VehicleScript.cpp +++ b/src/server/game/Scripting/ScriptDefines/VehicleScript.cpp @@ -16,7 +16,6 @@ */ #include "ScriptMgr.h" -#include "ScriptMgrMacros.h" #include "Vehicle.h" void ScriptMgr::OnInstall(Vehicle* veh) diff --git a/src/server/game/Scripting/ScriptSystem.cpp b/src/server/game/Scripting/ScriptSystem.cpp index af8b6eb2c..11861afe9 100644 --- a/src/server/game/Scripting/ScriptSystem.cpp +++ b/src/server/game/Scripting/ScriptSystem.cpp @@ -18,7 +18,6 @@ #include "ScriptSystem.h" #include "DatabaseEnv.h" #include "ObjectMgr.h" -#include "ScriptMgr.h" ScriptPointVector const SystemMgr::_empty; diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 4e1f59199..9dee0f3a9 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -20,9 +20,7 @@ #include "Battleground.h" #include "CellImpl.h" #include "Common.h" -#include "Formulas.h" #include "GridNotifiers.h" -#include "GridNotifiersImpl.h" #include "InstanceScript.h" #include "Log.h" #include "ObjectAccessor.h" @@ -40,6 +38,12 @@ #include "Vehicle.h" #include "WorldPacket.h" +// TODO: this import is not necessary for compilation and marked as unused by the IDE +// however, for some reasons removing it would cause a damn linking issue +// there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 +#include "GridNotifiersImpl.h" + class Aura; // // EFFECT HANDLER NOTES diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp index 9763f7011..aee2a4b1d 100644 --- a/src/server/game/Spells/Auras/SpellAuras.cpp +++ b/src/server/game/Spells/Auras/SpellAuras.cpp @@ -18,9 +18,7 @@ #include "ArenaSpectator.h" #include "CellImpl.h" #include "Common.h" -#include "DynamicObject.h" #include "GridNotifiers.h" -#include "GridNotifiersImpl.h" #include "Log.h" #include "ObjectAccessor.h" #include "ObjectMgr.h" @@ -36,6 +34,12 @@ #include "Vehicle.h" #include "WorldPacket.h" +// TODO: this import is not necessary for compilation and marked as unused by the IDE +// however, for some reasons removing it would cause a damn linking issue +// there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 +#include "GridNotifiersImpl.h" + // update aura target map every 500 ms instead of every update - reduce amount of grid searcher calls static constexpr int32 UPDATE_TARGET_MAP_INTERVAL = 500; diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 823adc339..9d826a3cc 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -60,7 +60,12 @@ #include "Vehicle.h" #include "World.h" #include "WorldPacket.h" -#include "WorldSession.h" + + // TODO: this import is not necessary for compilation and marked as unused by the IDE +// however, for some reasons removing it would cause a damn linking issue +// there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 +#include "GridNotifiersImpl.h" pEffect SpellEffects[TOTAL_SPELL_EFFECTS] = { diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index 3bdee353c..1d31fbf91 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -16,7 +16,6 @@ */ #include "SpellInfo.h" -#include "Battleground.h" #include "Chat.h" #include "ConditionMgr.h" #include "DBCStores.h" diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index bd0cc860b..cdcebb495 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -17,7 +17,6 @@ #include "SpellMgr.h" #include "BattlefieldMgr.h" -#include "BattlefieldWG.h" #include "BattlegroundIC.h" #include "BattlegroundMgr.h" #include "Chat.h" diff --git a/src/server/scripts/Commands/cs_arena.cpp b/src/server/scripts/Commands/cs_arena.cpp index 9ede93689..5b0bfd662 100644 --- a/src/server/scripts/Commands/cs_arena.cpp +++ b/src/server/scripts/Commands/cs_arena.cpp @@ -25,7 +25,6 @@ EndScriptData */ #include "ArenaTeamMgr.h" #include "Chat.h" #include "Language.h" -#include "ObjectMgr.h" #include "Player.h" #include "ScriptMgr.h" diff --git a/src/server/scripts/Commands/cs_guild.cpp b/src/server/scripts/Commands/cs_guild.cpp index a7d728fa9..44222a890 100644 --- a/src/server/scripts/Commands/cs_guild.cpp +++ b/src/server/scripts/Commands/cs_guild.cpp @@ -26,7 +26,6 @@ EndScriptData */ #include "Guild.h" #include "GuildMgr.h" #include "Language.h" -#include "ObjectAccessor.h" #include "ScriptMgr.h" #if AC_COMPILER == AC_COMPILER_GNU diff --git a/src/server/scripts/Commands/cs_message.cpp b/src/server/scripts/Commands/cs_message.cpp index e09247078..768495995 100644 --- a/src/server/scripts/Commands/cs_message.cpp +++ b/src/server/scripts/Commands/cs_message.cpp @@ -23,7 +23,6 @@ Category: commandscripts EndScriptData */ #include "Channel.h" -#include "ChannelMgr.h" #include "Chat.h" #include "DBCStores.h" #include "DatabaseEnv.h" diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp index beecd919a..1a994b169 100644 --- a/src/server/scripts/Commands/cs_misc.cpp +++ b/src/server/scripts/Commands/cs_misc.cpp @@ -23,7 +23,6 @@ #include "Chat.h" #include "GameGraveyard.h" #include "GridNotifiers.h" -#include "GridNotifiersImpl.h" #include "Group.h" #include "GroupMgr.h" #include "GuildMgr.h" @@ -43,6 +42,12 @@ #include "TargetedMovementGenerator.h" #include "WeatherMgr.h" +// TODO: this import is not necessary for compilation and marked as unused by the IDE +// however, for some reasons removing it would cause a damn linking issue +// there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 +#include "GridNotifiersImpl.h" + #if AC_COMPILER == AC_COMPILER_GNU #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif diff --git a/src/server/scripts/Events/hallows_end.cpp b/src/server/scripts/Events/hallows_end.cpp index 88c9718fe..3a9ec6886 100644 --- a/src/server/scripts/Events/hallows_end.cpp +++ b/src/server/scripts/Events/hallows_end.cpp @@ -19,7 +19,6 @@ #include "GameObjectAI.h" #include "GossipDef.h" #include "GridNotifiers.h" -#include "GridNotifiersImpl.h" #include "Group.h" #include "LFGMgr.h" #include "PassiveAI.h" @@ -29,6 +28,12 @@ #include "SpellScript.h" #include "TaskScheduler.h" +// TODO: this import is not necessary for compilation and marked as unused by the IDE +// however, for some reasons removing it would cause a damn linking issue +// there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 +#include "GridNotifiersImpl.h" + /////////////////////////////////////// ////// ITEMS FIXES, BASIC STUFF /////////////////////////////////////// diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/instance_old_hillsbrad.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/instance_old_hillsbrad.cpp index f00c64766..a22bbcb2b 100644 --- a/src/server/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/instance_old_hillsbrad.cpp +++ b/src/server/scripts/Kalimdor/CavernsOfTime/EscapeFromDurnholdeKeep/instance_old_hillsbrad.cpp @@ -18,7 +18,6 @@ #include "InstanceScript.h" #include "Player.h" #include "ScriptMgr.h" -#include "ScriptedCreature.h" #include "old_hillsbrad.h" const Position instancePositions[INSTANCE_POSITIONS_COUNT] = diff --git a/src/server/scripts/Kalimdor/zone_silithus.cpp b/src/server/scripts/Kalimdor/zone_silithus.cpp index 839b11073..6b5d8c958 100644 --- a/src/server/scripts/Kalimdor/zone_silithus.cpp +++ b/src/server/scripts/Kalimdor/zone_silithus.cpp @@ -28,7 +28,6 @@ quest_a_pawn_on_the_eternal_pawn EndContentData */ #include "AccountMgr.h" -#include "BanMgr.h" #include "GameObject.h" #include "GameObjectAI.h" #include "Group.h" @@ -38,7 +37,6 @@ EndContentData */ #include "ScriptedGossip.h" #include "Spell.h" #include "SpellInfo.h" -#include "WorldSession.h" /*#### # quest_a_pawn_on_the_eternal_board (Defines) diff --git a/src/server/scripts/Northrend/zone_zuldrak.cpp b/src/server/scripts/Northrend/zone_zuldrak.cpp index ac5e0b5b2..aad080965 100644 --- a/src/server/scripts/Northrend/zone_zuldrak.cpp +++ b/src/server/scripts/Northrend/zone_zuldrak.cpp @@ -15,12 +15,10 @@ * with this program. If not, see . */ -#include "CombatAI.h" #include "PassiveAI.h" #include "Player.h" #include "ScriptMgr.h" #include "ScriptedCreature.h" -#include "ScriptedEscortAI.h" #include "ScriptedGossip.h" #include "SpellAuras.h" #include "SpellInfo.h" diff --git a/src/server/scripts/Outland/HellfireCitadel/MagtheridonsLair/instance_magtheridons_lair.cpp b/src/server/scripts/Outland/HellfireCitadel/MagtheridonsLair/instance_magtheridons_lair.cpp index c60fa954a..5a8bc7865 100644 --- a/src/server/scripts/Outland/HellfireCitadel/MagtheridonsLair/instance_magtheridons_lair.cpp +++ b/src/server/scripts/Outland/HellfireCitadel/MagtheridonsLair/instance_magtheridons_lair.cpp @@ -17,7 +17,6 @@ #include "InstanceScript.h" #include "ScriptMgr.h" -#include "ScriptedCreature.h" #include "magtheridons_lair.h" DoorData const doorData[] = diff --git a/src/server/scripts/Outland/zone_blades_edge_mountains.cpp b/src/server/scripts/Outland/zone_blades_edge_mountains.cpp index d3ea14921..35d686c5b 100644 --- a/src/server/scripts/Outland/zone_blades_edge_mountains.cpp +++ b/src/server/scripts/Outland/zone_blades_edge_mountains.cpp @@ -31,7 +31,6 @@ EndContentData */ #include "Cell.h" #include "CellImpl.h" #include "GridNotifiers.h" -#include "GridNotifiersImpl.h" #include "ScriptMgr.h" #include "ScriptedCreature.h" #include "ScriptedGossip.h" @@ -40,6 +39,12 @@ EndContentData */ #include "SpellInfo.h" #include "SpellScript.h" +// TODO: this import is not necessary for compilation and marked as unused by the IDE +// however, for some reasons removing it would cause a damn linking issue +// there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 +#include "GridNotifiersImpl.h" + // Ours enum deathsdoorfell { diff --git a/src/server/scripts/Outland/zone_shadowmoon_valley.cpp b/src/server/scripts/Outland/zone_shadowmoon_valley.cpp index 88129f718..7e22f23b4 100644 --- a/src/server/scripts/Outland/zone_shadowmoon_valley.cpp +++ b/src/server/scripts/Outland/zone_shadowmoon_valley.cpp @@ -44,7 +44,6 @@ EndContentData */ #include "ScriptedEscortAI.h" #include "ScriptedGossip.h" #include "SpellScript.h" -#include "WorldSession.h" // Ours class spell_q10612_10613_the_fel_and_the_furious : public SpellScriptLoader diff --git a/src/server/scripts/Outland/zone_shattrath_city.cpp b/src/server/scripts/Outland/zone_shattrath_city.cpp index 0941d9377..e45cd1820 100644 --- a/src/server/scripts/Outland/zone_shattrath_city.cpp +++ b/src/server/scripts/Outland/zone_shattrath_city.cpp @@ -36,7 +36,6 @@ EndContentData */ #include "ScriptedCreature.h" #include "ScriptedEscortAI.h" #include "ScriptedGossip.h" -#include "WorldSession.h" /*###### ## npc_raliq_the_drunk diff --git a/src/server/scripts/Outland/zone_terokkar_forest.cpp b/src/server/scripts/Outland/zone_terokkar_forest.cpp index f07cf0eba..6c16496c0 100644 --- a/src/server/scripts/Outland/zone_terokkar_forest.cpp +++ b/src/server/scripts/Outland/zone_terokkar_forest.cpp @@ -40,7 +40,6 @@ EndContentData */ #include "ScriptedGossip.h" #include "SpellAuras.h" #include "SpellScript.h" -#include "WorldSession.h" // Ours enum fumping diff --git a/src/server/scripts/Outland/zone_zangarmarsh.cpp b/src/server/scripts/Outland/zone_zangarmarsh.cpp index a0a525496..f88ff93a1 100644 --- a/src/server/scripts/Outland/zone_zangarmarsh.cpp +++ b/src/server/scripts/Outland/zone_zangarmarsh.cpp @@ -36,7 +36,6 @@ EndContentData */ #include "ScriptedCreature.h" #include "ScriptedEscortAI.h" #include "ScriptedGossip.h" -#include "WorldSession.h" // Ours enum eNaturalist diff --git a/src/server/scripts/Pet/pet_dk.cpp b/src/server/scripts/Pet/pet_dk.cpp index 312db264d..ecfa49df8 100644 --- a/src/server/scripts/Pet/pet_dk.cpp +++ b/src/server/scripts/Pet/pet_dk.cpp @@ -24,12 +24,17 @@ #include "CellImpl.h" #include "CombatAI.h" #include "GridNotifiers.h" -#include "GridNotifiersImpl.h" #include "PassiveAI.h" #include "ScriptMgr.h" #include "ScriptedCreature.h" #include "SpellAuraEffects.h" +// TODO: this import is not necessary for compilation and marked as unused by the IDE +// however, for some reasons removing it would cause a damn linking issue +// there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 +#include "GridNotifiersImpl.h" + enum DeathKnightSpells { SPELL_DK_SUMMON_GARGOYLE_1 = 49206, diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp index 8d88183bf..bb481e775 100644 --- a/src/server/scripts/Spells/spell_generic.cpp +++ b/src/server/scripts/Spells/spell_generic.cpp @@ -45,6 +45,7 @@ // TODO: this import is not necessary for compilation and marked as unused by the IDE // however, for some reasons removing it would cause a damn linking issue // there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 #include "GridNotifiersImpl.h" // 46642 - 5,000 Gold diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp index bc659bdd1..9e6c9a7a9 100644 --- a/src/server/scripts/Spells/spell_hunter.cpp +++ b/src/server/scripts/Spells/spell_hunter.cpp @@ -34,6 +34,7 @@ // TODO: this import is not necessary for compilation and marked as unused by the IDE // however, for some reasons removing it would cause a damn linking issue // there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 #include "GridNotifiersImpl.h" enum HunterSpells diff --git a/src/server/scripts/World/boss_emerald_dragons.cpp b/src/server/scripts/World/boss_emerald_dragons.cpp index bbcf90b63..de7a1e047 100644 --- a/src/server/scripts/World/boss_emerald_dragons.cpp +++ b/src/server/scripts/World/boss_emerald_dragons.cpp @@ -16,7 +16,6 @@ */ #include "GridNotifiers.h" -#include "ObjectMgr.h" #include "PassiveAI.h" #include "ScriptMgr.h" #include "ScriptedCreature.h" diff --git a/src/server/scripts/World/npc_innkeeper.cpp b/src/server/scripts/World/npc_innkeeper.cpp index 16aa87197..f70468479 100644 --- a/src/server/scripts/World/npc_innkeeper.cpp +++ b/src/server/scripts/World/npc_innkeeper.cpp @@ -20,7 +20,6 @@ #include "ScriptMgr.h" #include "ScriptedCreature.h" #include "ScriptedGossip.h" -#include "WorldSession.h" constexpr auto SPELL_TRICK = 24714; constexpr auto SPELL_TREAT = 24715; diff --git a/src/server/scripts/World/npc_professions.cpp b/src/server/scripts/World/npc_professions.cpp index ed767b6c9..ea30b5361 100644 --- a/src/server/scripts/World/npc_professions.cpp +++ b/src/server/scripts/World/npc_professions.cpp @@ -27,7 +27,6 @@ EndScriptData */ #include "ScriptedCreature.h" #include "ScriptedGossip.h" #include "SpellInfo.h" -#include "WorldSession.h" /* A few notes for future developement: diff --git a/src/server/scripts/World/npc_taxi.cpp b/src/server/scripts/World/npc_taxi.cpp index 80d47ebf0..84636f22c 100644 --- a/src/server/scripts/World/npc_taxi.cpp +++ b/src/server/scripts/World/npc_taxi.cpp @@ -27,7 +27,6 @@ EndScriptData #include "ScriptMgr.h" #include "ScriptedCreature.h" #include "ScriptedGossip.h" -#include "WorldSession.h" #define GOSSIP_NETHER_DRAKE "I'm ready to fly! Take me up, dragon!" #define GOSSIP_IRONWING "I'd like to take a flight around Stormwind Harbor." diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp index 657007840..3a425b5ce 100644 --- a/src/server/scripts/World/npcs_special.cpp +++ b/src/server/scripts/World/npcs_special.cpp @@ -36,7 +36,6 @@ npc_locksmith 75% list of keys needs to be confirmed npc_firework 100% NPC's summoned by rockets and rocket clusters, for making them cast visual EndContentData */ -#include "Cell.h" #include "CellImpl.h" #include "Chat.h" #include "CombatAI.h" @@ -44,8 +43,6 @@ EndContentData */ #include "DBCStructure.h" #include "GameEventMgr.h" #include "GridNotifiers.h" -#include "GridNotifiersImpl.h" -#include "Group.h" #include "ObjectMgr.h" #include "PassiveAI.h" #include "Pet.h" @@ -58,6 +55,12 @@ EndContentData */ #include "WaypointMgr.h" #include "World.h" +// TODO: this import is not necessary for compilation and marked as unused by the IDE +// however, for some reasons removing it would cause a damn linking issue +// there is probably some underlying problem with imports which should properly addressed +// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 +#include "GridNotifiersImpl.h" + enum elderClearwater { EVENT_CLEARWATER_ANNOUNCE = 1, diff --git a/src/tools/map_extractor/System.cpp b/src/tools/map_extractor/System.cpp index 8d566a954..2f6ab1199 100644 --- a/src/tools/map_extractor/System.cpp +++ b/src/tools/map_extractor/System.cpp @@ -37,7 +37,6 @@ #include "adt.h" #include "wdt.h" -#include "G3D/Plane.h" #include #if defined( __GNUC__ ) diff --git a/src/tools/mesh_extractor/Geometry.cpp b/src/tools/mesh_extractor/Geometry.cpp index d719c7c06..dc5c573d0 100644 --- a/src/tools/mesh_extractor/Geometry.cpp +++ b/src/tools/mesh_extractor/Geometry.cpp @@ -20,7 +20,6 @@ #include "Constants.h" #include "DoodadHandler.h" #include "WorldModelHandler.h" -#include Geometry::Geometry() : Transform(false) { diff --git a/src/tools/mesh_extractor/ObjectDataHandler.cpp b/src/tools/mesh_extractor/ObjectDataHandler.cpp index b3ff57b31..ef63b4921 100644 --- a/src/tools/mesh_extractor/ObjectDataHandler.cpp +++ b/src/tools/mesh_extractor/ObjectDataHandler.cpp @@ -17,8 +17,6 @@ #include "ObjectDataHandler.h" #include "ADT.h" -#include "Chunk.h" -#include "ChunkedData.h" void ObjectDataHandler::ProcessMapChunk( MapChunk* chunk ) { diff --git a/src/tools/vmap4_extractor/vmapexport.cpp b/src/tools/vmap4_extractor/vmapexport.cpp index 318be5089..1b334d432 100644 --- a/src/tools/vmap4_extractor/vmapexport.cpp +++ b/src/tools/vmap4_extractor/vmapexport.cpp @@ -18,7 +18,6 @@ #define _CRT_SECURE_NO_DEPRECATE #include #include -#include #include #include #include diff --git a/src/tools/vmap4_extractor/wmo.cpp b/src/tools/vmap4_extractor/wmo.cpp index 8f8229602..885a8f4bd 100644 --- a/src/tools/vmap4_extractor/wmo.cpp +++ b/src/tools/vmap4_extractor/wmo.cpp @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #undef min