refactor(Core): remove unused imports (#9767)

This commit is contained in:
Francesco Borzì
2021-12-19 19:41:14 +01:00
committed by GitHub
parent d2d99bccc7
commit cbc7e5466a
79 changed files with 76 additions and 103 deletions

View File

@@ -16,7 +16,6 @@
*/
#include "GridNotifiers.h"
#include "ObjectMgr.h"
#include "PassiveAI.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"

View File

@@ -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;

View File

@@ -27,7 +27,6 @@ EndScriptData */
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "SpellInfo.h"
#include "WorldSession.h"
/*
A few notes for future developement:

View File

@@ -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."

View File

@@ -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,