refactor(src/server/game/*): remove unused imports (big part 1) (#20310)

This commit is contained in:
Francesco Borzì
2024-10-27 10:25:40 +01:00
committed by GitHub
parent 2c344fc127
commit cb7e28df05
50 changed files with 26 additions and 39 deletions

View File

@@ -18,9 +18,7 @@
#ifndef CREATUREAIIMPL_H #ifndef CREATUREAIIMPL_H
#define CREATUREAIIMPL_H #define CREATUREAIIMPL_H
#include "CreatureAI.h"
#include "Define.h" #include "Define.h"
#include "SpellMgr.h"
#include "TemporarySummon.h" #include "TemporarySummon.h"
template<typename First, typename Second, typename... Rest> template<typename First, typename Second, typename... Rest>

View File

@@ -23,7 +23,6 @@
#include "DBCStores.h" #include "DBCStores.h"
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
#include "ObjectGuid.h" #include "ObjectGuid.h"
#include <chrono>
#include <map> #include <map>
#include <string> #include <string>

View File

@@ -22,7 +22,6 @@
#include <array> #include <array>
#include <list> #include <list>
#include <string> #include <string>
#include <utility>
struct AddonInfo struct AddonInfo
{ {

View File

@@ -23,7 +23,6 @@
#include "Player.h" #include "Player.h"
#include "SpellAuraEffects.h" #include "SpellAuraEffects.h"
#include "SpellAuras.h" #include "SpellAuras.h"
#include "Types.h"
#include "World.h" #include "World.h"
bool ArenaSpectator::HandleSpectatorSpectateCommand(ChatHandler* handler, std::string const& name) bool ArenaSpectator::HandleSpectatorSpectateCommand(ChatHandler* handler, std::string const& name)

View File

@@ -23,7 +23,6 @@
#include "DBCEnums.h" #include "DBCEnums.h"
#include "EventProcessor.h" #include "EventProcessor.h"
#include <array> #include <array>
#include <deque>
constexpr auto COUNT_OF_PLAYERS_TO_AVERAGE_WAIT_TIME = 10; constexpr auto COUNT_OF_PLAYERS_TO_AVERAGE_WAIT_TIME = 10;

View File

@@ -21,10 +21,7 @@
#include "Common.h" #include "Common.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include "WorldSession.h" #include "WorldSession.h"
#include <list>
#include <map>
#include <string> #include <string>
#include <utility>
class Player; class Player;

View File

@@ -19,7 +19,6 @@
#define __ACORE_CHANNELMGR_H #define __ACORE_CHANNELMGR_H
#include "Channel.h" #include "Channel.h"
#include "Common.h"
#include "World.h" #include "World.h"
#include <map> #include <map>
#include <string> #include <string>

View File

@@ -22,7 +22,6 @@
#include "Player.h" #include "Player.h"
#include "SharedDefines.h" #include "SharedDefines.h"
#include "WorldSession.h" #include "WorldSession.h"
#include <vector>
class ChatHandler; class ChatHandler;
class Creature; class Creature;

View File

@@ -23,14 +23,12 @@
#include "Define.h" #include "Define.h"
#include "Errors.h" #include "Errors.h"
#include "Language.h" #include "Language.h"
#include "ObjectGuid.h"
#include "Optional.h" #include "Optional.h"
#include "StringFormat.h" #include "StringFormat.h"
#include "Util.h" #include "Util.h"
#include <cstddef> #include <cstddef>
#include <map> #include <map>
#include <tuple> #include <tuple>
#include <utility>
#include <variant> #include <variant>
#include <vector> #include <vector>

View File

@@ -24,7 +24,6 @@
#include "StringConvert.h" #include "StringConvert.h"
#include "StringFormat.h" #include "StringFormat.h"
#include "Util.h" #include "Util.h"
#include <charconv>
#include <map> #include <map>
#include <string> #include <string>
#include <string_view> #include <string_view>

View File

@@ -18,7 +18,6 @@
#ifndef _HOSTILEREFMANAGER #ifndef _HOSTILEREFMANAGER
#define _HOSTILEREFMANAGER #define _HOSTILEREFMANAGER
#include "Common.h"
#include "RefMgr.h" #include "RefMgr.h"
class Unit; class Unit;

View File

@@ -18,7 +18,6 @@
#ifndef _THREATMANAGER #ifndef _THREATMANAGER
#define _THREATMANAGER #define _THREATMANAGER
#include "Common.h"
#include "IteratorPair.h" #include "IteratorPair.h"
#include "ObjectGuid.h" #include "ObjectGuid.h"
#include "Reference.h" #include "Reference.h"

View File

@@ -19,7 +19,6 @@
#define ACORE_CONDITIONMGR_H #define ACORE_CONDITIONMGR_H
#include "Define.h" #include "Define.h"
#include "Errors.h"
#include <list> #include <list>
#include <map> #include <map>

View File

@@ -25,6 +25,7 @@
#include "SpellMgr.h" #include "SpellMgr.h"
#include "StringConvert.h" #include "StringConvert.h"
#include "Tokenize.h" #include "Tokenize.h"
#include "VMapMgr2.h"
#include "World.h" #include "World.h"
namespace DisableMgr namespace DisableMgr

View File

@@ -20,8 +20,6 @@
#include "Define.h" #include "Define.h"
#include "Map.h" #include "Map.h"
#include "VMapMgr2.h"
class Unit; class Unit;
enum DisableType enum DisableType

View File

@@ -23,7 +23,6 @@
#include "World.h" #include "World.h"
#include <boost/filesystem/path.hpp> #include <boost/filesystem/path.hpp>
#include <fstream> #include <fstream>
#include <iostream>
typedef std::vector<FlyByCamera> FlyByCameraCollection; typedef std::vector<FlyByCamera> FlyByCameraCollection;
std::unordered_map<uint32, FlyByCameraCollection> sFlyByCameraStore; std::unordered_map<uint32, FlyByCameraCollection> sFlyByCameraStore;

View File

@@ -18,10 +18,7 @@
#ifndef _LFG_H #ifndef _LFG_H
#define _LFG_H #define _LFG_H
#include "Common.h"
#include "ObjectDefines.h"
#include "ObjectGuid.h" #include "ObjectGuid.h"
#include "SharedDefines.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include <array> #include <array>
#include <map> #include <map>

View File

@@ -19,6 +19,7 @@
#define _LFGPLAYERDATA_H #define _LFGPLAYERDATA_H
#include "LFG.h" #include "LFG.h"
#include "SharedDefines.h"
namespace lfg namespace lfg
{ {

View File

@@ -23,7 +23,6 @@
#include "ItemTemplate.h" #include "ItemTemplate.h"
#include "LootMgr.h" #include "LootMgr.h"
#include "Unit.h" #include "Unit.h"
#include "World.h"
#include <list> #include <list>
#define MAX_AGGRO_RESET_TIME 10 // in seconds #define MAX_AGGRO_RESET_TIME 10 // in seconds

View File

@@ -21,7 +21,6 @@
#include "DisableMgr.h" #include "DisableMgr.h"
#include "GameObjectAI.h" #include "GameObjectAI.h"
#include "GameTime.h" #include "GameTime.h"
#include "GossipDef.h"
#include "Language.h" #include "Language.h"
#include "Log.h" #include "Log.h"
#include "MapMgr.h" #include "MapMgr.h"

View File

@@ -21,7 +21,6 @@
#include "Common.h" #include "Common.h"
#include "MapDefines.h" #include "MapDefines.h"
#include "NGrid.h" #include "NGrid.h"
#include <cmath>
// Forward class definitions // Forward class definitions
class Corpse; class Corpse;

View File

@@ -26,6 +26,7 @@
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "Group.h" #include "Group.h"
#include "InstanceScript.h" #include "InstanceScript.h"
#include "IVMapMgr.h"
#include "LFGMgr.h" #include "LFGMgr.h"
#include "MapInstanced.h" #include "MapInstanced.h"
#include "Metric.h" #include "Metric.h"
@@ -39,6 +40,7 @@
#include "Transport.h" #include "Transport.h"
#include "VMapFactory.h" #include "VMapFactory.h"
#include "Vehicle.h" #include "Vehicle.h"
#include "VMapMgr2.h"
#include "Weather.h" #include "Weather.h"
union u_map_magic union u_map_magic

View File

@@ -33,11 +33,9 @@
#include "Position.h" #include "Position.h"
#include "SharedDefines.h" #include "SharedDefines.h"
#include "TaskScheduler.h" #include "TaskScheduler.h"
#include "Timer.h"
#include <bitset> #include <bitset>
#include <list> #include <list>
#include <memory> #include <memory>
#include <mutex>
#include <shared_mutex> #include <shared_mutex>
class Unit; class Unit;

View File

@@ -23,7 +23,6 @@
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "Player.h" #include "Player.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "VMapFactory.h"
MapInstanced::MapInstanced(uint32 id) : Map(id, 0, DUNGEON_DIFFICULTY_NORMAL) MapInstanced::MapInstanced(uint32 id) : Map(id, 0, DUNGEON_DIFFICULTY_NORMAL)
{ {

View File

@@ -25,8 +25,6 @@
#include "MapUpdater.h" #include "MapUpdater.h"
#include "Object.h" #include "Object.h"
#include <mutex>
class Transport; class Transport;
class StaticTransport; class StaticTransport;
class MotionTransport; class MotionTransport;

View File

@@ -21,7 +21,6 @@
#include "Define.h" #include "Define.h"
#include "PCQueue.h" #include "PCQueue.h"
#include <condition_variable> #include <condition_variable>
#include <mutex>
#include <thread> #include <thread>
class Map; class Map;

View File

@@ -18,7 +18,6 @@
#ifndef ZONE_SCRIPT_H_ #ifndef ZONE_SCRIPT_H_
#define ZONE_SCRIPT_H_ #define ZONE_SCRIPT_H_
#include "Common.h"
#include "Creature.h" #include "Creature.h"
class GameObject; class GameObject;

View File

@@ -47,7 +47,6 @@
#include "SpellScript.h" #include "SpellScript.h"
#include "TemporarySummon.h" #include "TemporarySummon.h"
#include "Unit.h" #include "Unit.h"
#include "UpdateData.h"
#include "Util.h" #include "Util.h"
#include "VMapFactory.h" #include "VMapFactory.h"
#include "Vehicle.h" #include "Vehicle.h"
@@ -60,6 +59,8 @@
// there is probably some underlying problem with imports which should properly addressed // there is probably some underlying problem with imports which should properly addressed
// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766 // see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766
#include "GridNotifiersImpl.h" #include "GridNotifiersImpl.h"
#include "IVMapMgr.h"
#include "VMapMgr2.h"
extern pEffect SpellEffects[TOTAL_SPELL_EFFECTS]; extern pEffect SpellEffects[TOTAL_SPELL_EFFECTS];

View File

@@ -24,7 +24,6 @@
#include "Opcodes.h" #include "Opcodes.h"
#include "Player.h" #include "Player.h"
#include "SharedDefines.h" #include "SharedDefines.h"
#include "Util.h"
#include "World.h" #include "World.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include "WorldSession.h" #include "WorldSession.h"

View File

@@ -18,10 +18,8 @@
#ifndef _WARDEN_MAC_H #ifndef _WARDEN_MAC_H
#define _WARDEN_MAC_H #define _WARDEN_MAC_H
#include "ARC4.h"
#include "ByteBuffer.h" #include "ByteBuffer.h"
#include "Warden.h" #include "Warden.h"
#include <map>
class WorldSession; class WorldSession;
class Warden; class Warden;

View File

@@ -19,8 +19,6 @@
#define _WARDEN_WIN_H #define _WARDEN_WIN_H
#include "ByteBuffer.h" #include "ByteBuffer.h"
#include "Cryptography/ARC4.h"
#include "Cryptography/BigNumber.h"
#include "Warden.h" #include "Warden.h"
#include <list> #include <list>

View File

@@ -28,6 +28,8 @@
#include "karazhan.h" #include "karazhan.h"
#include <array> #include <array>
#include "SpellMgr.h"
enum EchoOfMedivhGossipOptions enum EchoOfMedivhGossipOptions
{ {
MEDIVH_GOSSIP_START_PVE = 1, MEDIVH_GOSSIP_START_PVE = 1,

View File

@@ -26,6 +26,7 @@
#include "SpellScriptLoader.h" #include "SpellScriptLoader.h"
#include "TaskScheduler.h" #include "TaskScheduler.h"
#include "karazhan.h" #include "karazhan.h"
#include "SpellMgr.h"
enum Texts enum Texts
{ {

View File

@@ -21,6 +21,7 @@
#include "PassiveAI.h" #include "PassiveAI.h"
#include "Player.h" #include "Player.h"
#include "SpellAuraEffects.h" #include "SpellAuraEffects.h"
#include "SpellMgr.h"
#include "SpellScript.h" #include "SpellScript.h"
#include "SpellScriptLoader.h" #include "SpellScriptLoader.h"
#include "Vehicle.h" #include "Vehicle.h"

View File

@@ -39,6 +39,7 @@ EndContentData */
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "Spell.h" #include "Spell.h"
#include "SpellInfo.h" #include "SpellInfo.h"
#include "SpellMgr.h"
/*#### /*####
# quest_a_pawn_on_the_eternal_board (Defines) # quest_a_pawn_on_the_eternal_board (Defines)

View File

@@ -20,6 +20,7 @@
#include "SpellScriptLoader.h" #include "SpellScriptLoader.h"
#include "azjol_nerub.h" #include "azjol_nerub.h"
#include "SpellInfo.h" #include "SpellInfo.h"
#include "SpellMgr.h"
#include "SpellScript.h" #include "SpellScript.h"
enum Spells enum Spells

View File

@@ -22,6 +22,7 @@
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptedEscortAI.h" #include "ScriptedEscortAI.h"
#include "SpellInfo.h" #include "SpellInfo.h"
#include "SpellMgr.h"
#include "Vehicle.h" #include "Vehicle.h"
#include "trial_of_the_champion.h" #include "trial_of_the_champion.h"

View File

@@ -22,6 +22,7 @@
#include "SpellScriptLoader.h" #include "SpellScriptLoader.h"
#include "drak_tharon_keep.h" #include "drak_tharon_keep.h"
#include "SpellAuraEffects.h" #include "SpellAuraEffects.h"
#include "SpellMgr.h"
#include "SpellScript.h" #include "SpellScript.h"
enum Yells enum Yells

View File

@@ -24,6 +24,7 @@
#include "SpellAuras.h" #include "SpellAuras.h"
#include "SpellScriptLoader.h" #include "SpellScriptLoader.h"
#include "icecrown_citadel.h" #include "icecrown_citadel.h"
#include "SpellMgr.h"
enum ScriptTexts enum ScriptTexts
{ {

View File

@@ -22,6 +22,7 @@
#include "SpellAuras.h" #include "SpellAuras.h"
#include "SpellScriptLoader.h" #include "SpellScriptLoader.h"
#include "icecrown_citadel.h" #include "icecrown_citadel.h"
#include "SpellMgr.h"
enum ScriptTexts enum ScriptTexts
{ {

View File

@@ -22,6 +22,7 @@
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "Spell.h" #include "Spell.h"
#include "icecrown_citadel.h" #include "icecrown_citadel.h"
#include "SpellMgr.h"
#define GOSSIP_SENDER_ICC_PORT 631 #define GOSSIP_SENDER_ICC_PORT 631

View File

@@ -20,6 +20,7 @@
#include "SpellScript.h" #include "SpellScript.h"
#include "SpellScriptLoader.h" #include "SpellScriptLoader.h"
#include "sethekk_halls.h" #include "sethekk_halls.h"
#include "SpellMgr.h"
enum Text enum Text
{ {

View File

@@ -21,6 +21,7 @@
#include "black_temple.h" #include "black_temple.h"
#include "Player.h" #include "Player.h"
#include "SpellAuraEffects.h" #include "SpellAuraEffects.h"
#include "SpellMgr.h"
#include "SpellScript.h" #include "SpellScript.h"
enum Says enum Says

View File

@@ -19,6 +19,7 @@
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "TaskScheduler.h" #include "TaskScheduler.h"
#include "gruuls_lair.h" #include "gruuls_lair.h"
#include "SpellMgr.h"
enum HighKingMaulgar enum HighKingMaulgar
{ {

View File

@@ -22,6 +22,7 @@
#include "SpellScript.h" #include "SpellScript.h"
#include "SpellScriptLoader.h" #include "SpellScriptLoader.h"
#include "blood_furnace.h" #include "blood_furnace.h"
#include "SpellMgr.h"
enum Say enum Say
{ {

View File

@@ -26,6 +26,7 @@
#include "Player.h" #include "Player.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "SpellAuras.h" #include "SpellAuras.h"
#include "SpellMgr.h"
enum MageSpells enum MageSpells
{ {

View File

@@ -23,6 +23,7 @@
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "SkillDiscovery.h" #include "SkillDiscovery.h"
#include "SpellAuraEffects.h" #include "SpellAuraEffects.h"
#include "SpellMgr.h"
#include "SpellScript.h" #include "SpellScript.h"
#include "SpellScriptLoader.h" #include "SpellScriptLoader.h"
#include "WorldSession.h" #include "WorldSession.h"

View File

@@ -20,6 +20,7 @@
#include "Player.h" #include "Player.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "Spell.h" #include "Spell.h"
#include "SpellMgr.h"
/*##### /*#####
# item_only_for_flight # item_only_for_flight

View File

@@ -18,6 +18,7 @@
#include "CreatureScript.h" #include "CreatureScript.h"
#include "PassiveAI.h" #include "PassiveAI.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "SpellMgr.h"
class trigger_periodic : public CreatureScript class trigger_periodic : public CreatureScript
{ {

View File

@@ -21,6 +21,7 @@
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "SpellInfo.h" #include "SpellInfo.h"
#include "SpellMgr.h"
/* ScriptData /* ScriptData
SDName: Npc_Professions SDName: Npc_Professions
SD%Complete: 80 SD%Complete: 80