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

This commit is contained in:
Francesco Borzì
2022-01-02 20:22:09 +01:00
committed by GitHub
parent 715b98a45e
commit b748730bc8
22 changed files with 1 additions and 26 deletions
-1
View File
@@ -18,7 +18,6 @@
#include "DynamicTree.h" #include "DynamicTree.h"
#include "BoundingIntervalHierarchyWrapper.h" #include "BoundingIntervalHierarchyWrapper.h"
#include "GameObjectModel.h" #include "GameObjectModel.h"
#include "Log.h"
#include "MapTree.h" #include "MapTree.h"
#include "ModelInstance.h" #include "ModelInstance.h"
#include "RegularGrid.h" #include "RegularGrid.h"
-1
View File
@@ -20,7 +20,6 @@
#include "Containers.h" #include "Containers.h"
#include "IpAddress.h" #include "IpAddress.h"
#include "StringConvert.h" #include "StringConvert.h"
#include "StringFormat.h"
#include "Tokenize.h" #include "Tokenize.h"
#include <algorithm> #include <algorithm>
#include <boost/core/demangle.hpp> #include <boost/core/demangle.hpp>
-1
View File
@@ -26,7 +26,6 @@
#include "AppenderDB.h" #include "AppenderDB.h"
#include "AuthSocketMgr.h" #include "AuthSocketMgr.h"
#include "Banner.h" #include "Banner.h"
#include "Common.h"
#include "Config.h" #include "Config.h"
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
#include "DatabaseLoader.h" #include "DatabaseLoader.h"
@@ -17,7 +17,6 @@
#include "DatabaseWorkerPool.h" #include "DatabaseWorkerPool.h"
#include "AdhocStatement.h" #include "AdhocStatement.h"
#include "Common.h"
#include "Errors.h" #include "Errors.h"
#include "Implementation/CharacterDatabase.h" #include "Implementation/CharacterDatabase.h"
#include "Implementation/LoginDatabase.h" #include "Implementation/LoginDatabase.h"
@@ -175,7 +174,7 @@ bool DatabaseWorkerPool<T>::PrepareStatements()
uint32 const paramCount = stmt->GetParameterCount(); uint32 const paramCount = stmt->GetParameterCount();
// TC only supports uint8 indices. // TC only supports uint8 indices.
ASSERT(paramCount < std::numeric_limits<uint8>::max()); ASSERT(paramCount < (std::numeric_limits<uint8>::max)());
_preparedStatementSize[i] = static_cast<uint8>(paramCount); _preparedStatementSize[i] = static_cast<uint8>(paramCount);
} }
@@ -16,7 +16,6 @@
*/ */
#include "MySQLConnection.h" #include "MySQLConnection.h"
#include "Common.h"
#include "DatabaseWorker.h" #include "DatabaseWorker.h"
#include "Log.h" #include "Log.h"
#include "MySQLHacks.h" #include "MySQLHacks.h"
@@ -16,7 +16,6 @@
*/ */
#include "LFGPlayerData.h" #include "LFGPlayerData.h"
#include "LFGMgr.h"
namespace lfg namespace lfg
{ {
@@ -48,7 +48,6 @@
#include "WaypointMovementGenerator.h" #include "WaypointMovementGenerator.h"
#include "World.h" #include "World.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include "Pet.h"
// TODO: this import is not necessary for compilation and marked as unused by the IDE // 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 // however, for some reasons removing it would cause a damn linking issue
-1
View File
@@ -17,7 +17,6 @@
#include "Pet.h" #include "Pet.h"
#include "ArenaSpectator.h" #include "ArenaSpectator.h"
#include "Battleground.h"
#include "Common.h" #include "Common.h"
#include "CreatureAI.h" #include "CreatureAI.h"
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
@@ -80,7 +80,6 @@
#include "Util.h" #include "Util.h"
#include "Vehicle.h" #include "Vehicle.h"
#include "Weather.h" #include "Weather.h"
#include "WeatherMgr.h"
#include "World.h" #include "World.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include "WorldSession.h" #include "WorldSession.h"
@@ -25,7 +25,6 @@
#include "Player.h" #include "Player.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "UpdateMask.h" #include "UpdateMask.h"
#include "Util.h"
#include "World.h" #include "World.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include "WorldSession.h" #include "WorldSession.h"
-1
View File
@@ -16,7 +16,6 @@
*/ */
#include "ModuleMgr.h" #include "ModuleMgr.h"
#include "Log.h"
#include "Tokenize.h" #include "Tokenize.h"
namespace namespace
-1
View File
@@ -16,7 +16,6 @@
*/ */
#include "Chat.h" #include "Chat.h"
#include "Language.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "Player.h" #include "Player.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
-2
View File
@@ -20,8 +20,6 @@
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
#include "GroupMgr.h" #include "GroupMgr.h"
#include "Language.h" #include "Language.h"
#include "LFG.h"
#include "ObjectAccessor.h"
#include "Player.h" #include "Player.h"
using namespace Acore::ChatCommands; using namespace Acore::ChatCommands;
-1
View File
@@ -25,7 +25,6 @@
#include "SpellMgr.h" #include "SpellMgr.h"
#include "SpellInfo.h" #include "SpellInfo.h"
#include "WorldSession.h" #include "WorldSession.h"
#include "ObjectMgr.h"
using namespace Acore::ChatCommands; using namespace Acore::ChatCommands;
-1
View File
@@ -24,7 +24,6 @@
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "Pet.h" #include "Pet.h"
#include "Player.h" #include "Player.h"
#include "WorldSession.h"
#include "Tokenize.h" #include "Tokenize.h"
using namespace Acore::ChatCommands; using namespace Acore::ChatCommands;
@@ -21,7 +21,6 @@
#include "MotionMaster.h" #include "MotionMaster.h"
#include "Player.h" #include "Player.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellAuraEffects.h" #include "SpellAuraEffects.h"
#include "SpellScript.h" #include "SpellScript.h"
#include "TemporarySummon.h" #include "TemporarySummon.h"
@@ -16,7 +16,6 @@
*/ */
#include "ObjectAccessor.h" #include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "molten_core.h" #include "molten_core.h"
@@ -18,7 +18,6 @@
#include "InstanceScript.h" #include "InstanceScript.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "TemporarySummon.h" #include "TemporarySummon.h"
#include "molten_core.h" #include "molten_core.h"
@@ -18,7 +18,6 @@
#include "Player.h" #include "Player.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptedEscortAI.h"
#include "azjol_nerub.h" #include "azjol_nerub.h"
enum Spells enum Spells
@@ -18,7 +18,6 @@
#include "OutdoorPvPZM.h" #include "OutdoorPvPZM.h"
#include "Creature.h" #include "Creature.h"
#include "GameGraveyard.h" #include "GameGraveyard.h"
#include "GossipDef.h"
#include "ObjectAccessor.h" #include "ObjectAccessor.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "OutdoorPvPMgr.h" #include "OutdoorPvPMgr.h"
-1
View File
@@ -19,7 +19,6 @@
#include "AccountMgr.h" #include "AccountMgr.h"
#include "Log.h" #include "Log.h"
#include "World.h" #include "World.h"
#include "soapH.h"
#include "soapStub.h" #include "soapStub.h"
void ACSoapThread(const std::string& host, uint16 port) void ACSoapThread(const std::string& host, uint16 port)
@@ -20,12 +20,9 @@
/// \file /// \file
#include "CliRunnable.h" #include "CliRunnable.h"
#include "Common.h"
#include "Config.h" #include "Config.h"
#include "Errors.h" #include "Errors.h"
#include "Log.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "Util.h"
#include "World.h" #include "World.h"
#if AC_PLATFORM != AC_PLATFORM_WINDOWS #if AC_PLATFORM != AC_PLATFORM_WINDOWS