From 44912f0e2aa2178ecbc57363ac8617941cbfe5c9 Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Sun, 22 Mar 2026 11:17:17 -0300 Subject: [PATCH] choreCore/Scripts): Remove unused includes from scripts (#25179) Co-authored-by: Claude Opus 4.6 (1M context) --- src/server/scripts/Commands/cs_cheat.cpp | 1 - src/server/scripts/Commands/cs_disable.cpp | 1 - src/server/scripts/Commands/cs_gear.cpp | 1 - src/server/scripts/Commands/cs_honor.cpp | 1 - src/server/scripts/Commands/cs_inventory.cpp | 1 - src/server/scripts/Events/winter_veil.cpp | 1 - src/server/scripts/OutdoorPvP/OutdoorPvPHP.cpp | 1 - src/server/scripts/OutdoorPvP/OutdoorPvPSI.cpp | 1 - src/server/scripts/OutdoorPvP/OutdoorPvPTF.cpp | 1 - src/server/scripts/Spells/spell_dk.cpp | 1 - src/server/scripts/Spells/spell_druid.cpp | 1 - src/server/scripts/Spells/spell_generic.cpp | 1 - src/server/scripts/Spells/spell_hunter.cpp | 1 - src/server/scripts/Spells/spell_item.cpp | 1 - src/server/scripts/Spells/spell_mage.cpp | 1 - src/server/scripts/Spells/spell_priest.cpp | 1 - src/server/scripts/Spells/spell_quest.cpp | 1 - src/server/scripts/Spells/spell_rogue.cpp | 1 - src/server/scripts/Spells/spell_shaman.cpp | 1 - src/server/scripts/Spells/spell_warlock.cpp | 1 - src/server/scripts/Spells/spell_warrior.cpp | 1 - src/server/scripts/World/go_scripts.cpp | 1 - src/server/scripts/World/item_scripts.cpp | 1 - src/server/scripts/World/server_mail.cpp | 1 - 24 files changed, 24 deletions(-) diff --git a/src/server/scripts/Commands/cs_cheat.cpp b/src/server/scripts/Commands/cs_cheat.cpp index 84d22411e..2b067ab78 100644 --- a/src/server/scripts/Commands/cs_cheat.cpp +++ b/src/server/scripts/Commands/cs_cheat.cpp @@ -19,7 +19,6 @@ #include "CommandScript.h" #include "Language.h" #include "Player.h" -#include "WorldSession.h" using namespace Acore::ChatCommands; diff --git a/src/server/scripts/Commands/cs_disable.cpp b/src/server/scripts/Commands/cs_disable.cpp index f38e387d3..2846f59a4 100644 --- a/src/server/scripts/Commands/cs_disable.cpp +++ b/src/server/scripts/Commands/cs_disable.cpp @@ -21,7 +21,6 @@ #include "Language.h" #include "ObjectMgr.h" #include "OutdoorPvP.h" -#include "Player.h" #include "SpellMgr.h" using namespace Acore::ChatCommands; diff --git a/src/server/scripts/Commands/cs_gear.cpp b/src/server/scripts/Commands/cs_gear.cpp index 1916359d7..b67fc456d 100644 --- a/src/server/scripts/Commands/cs_gear.cpp +++ b/src/server/scripts/Commands/cs_gear.cpp @@ -19,7 +19,6 @@ #include "CommandScript.h" #include "Language.h" #include "Player.h" -#include "WorldSession.h" using namespace Acore::ChatCommands; diff --git a/src/server/scripts/Commands/cs_honor.cpp b/src/server/scripts/Commands/cs_honor.cpp index 32cbb26a2..af83d0b9f 100644 --- a/src/server/scripts/Commands/cs_honor.cpp +++ b/src/server/scripts/Commands/cs_honor.cpp @@ -19,7 +19,6 @@ #include "CommandScript.h" #include "Language.h" #include "Player.h" -#include "WorldSession.h" using namespace Acore::ChatCommands; diff --git a/src/server/scripts/Commands/cs_inventory.cpp b/src/server/scripts/Commands/cs_inventory.cpp index 50490bb62..43fae2e91 100644 --- a/src/server/scripts/Commands/cs_inventory.cpp +++ b/src/server/scripts/Commands/cs_inventory.cpp @@ -19,7 +19,6 @@ #include "CommandScript.h" #include "Language.h" #include "Player.h" -#include "WorldSession.h" constexpr std::array bagSpecsToString = { diff --git a/src/server/scripts/Events/winter_veil.cpp b/src/server/scripts/Events/winter_veil.cpp index 32c848550..ffb82280e 100644 --- a/src/server/scripts/Events/winter_veil.cpp +++ b/src/server/scripts/Events/winter_veil.cpp @@ -15,7 +15,6 @@ * with this program. If not, see . */ -#include "CreatureScript.h" #include "GameEventMgr.h" #include "Player.h" #include "ScriptedCreature.h" diff --git a/src/server/scripts/OutdoorPvP/OutdoorPvPHP.cpp b/src/server/scripts/OutdoorPvP/OutdoorPvPHP.cpp index 66ac94100..f472847eb 100644 --- a/src/server/scripts/OutdoorPvP/OutdoorPvPHP.cpp +++ b/src/server/scripts/OutdoorPvP/OutdoorPvPHP.cpp @@ -16,7 +16,6 @@ */ #include "OutdoorPvPHP.h" -#include "CreatureScript.h" #include "Language.h" #include "MapMgr.h" #include "ObjectMgr.h" diff --git a/src/server/scripts/OutdoorPvP/OutdoorPvPSI.cpp b/src/server/scripts/OutdoorPvP/OutdoorPvPSI.cpp index 33e2fb9fa..bbd72a023 100644 --- a/src/server/scripts/OutdoorPvP/OutdoorPvPSI.cpp +++ b/src/server/scripts/OutdoorPvP/OutdoorPvPSI.cpp @@ -16,7 +16,6 @@ */ #include "OutdoorPvPSI.h" -#include "CreatureScript.h" #include "GameObject.h" #include "Language.h" #include "MapMgr.h" diff --git a/src/server/scripts/OutdoorPvP/OutdoorPvPTF.cpp b/src/server/scripts/OutdoorPvP/OutdoorPvPTF.cpp index 77bf4b4fa..ab781a85d 100644 --- a/src/server/scripts/OutdoorPvP/OutdoorPvPTF.cpp +++ b/src/server/scripts/OutdoorPvP/OutdoorPvPTF.cpp @@ -16,7 +16,6 @@ */ #include "OutdoorPvPTF.h" -#include "CreatureScript.h" #include "GameTime.h" #include "Language.h" #include "MapMgr.h" diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index ae2d2c517..442139783 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -16,7 +16,6 @@ */ #include "AreaDefines.h" -#include "CreatureScript.h" #include "PetDefines.h" #include "Player.h" #include "SpellAuraEffects.h" diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp index fea4d869e..0670da786 100644 --- a/src/server/scripts/Spells/spell_druid.cpp +++ b/src/server/scripts/Spells/spell_druid.cpp @@ -16,7 +16,6 @@ */ #include "Containers.h" -#include "CreatureScript.h" #include "GameTime.h" #include "GridNotifiers.h" #include "Player.h" diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp index 7b72cf252..8dff3bba9 100644 --- a/src/server/scripts/Spells/spell_generic.cpp +++ b/src/server/scripts/Spells/spell_generic.cpp @@ -23,7 +23,6 @@ #include "Cell.h" #include "CellImpl.h" #include "Chat.h" -#include "CreatureScript.h" #include "GameTime.h" #include "GridNotifiers.h" #include "Group.h" diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp index ed9556de2..a7147d328 100644 --- a/src/server/scripts/Spells/spell_hunter.cpp +++ b/src/server/scripts/Spells/spell_hunter.cpp @@ -17,7 +17,6 @@ #include "Cell.h" #include "CellImpl.h" -#include "CreatureScript.h" #include "GridNotifiers.h" #include "Pet.h" #include "SpellAuraEffects.h" diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index 4917351e8..764af2b9a 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -17,7 +17,6 @@ #include "AreaDefines.h" #include "Battleground.h" -#include "CreatureScript.h" #include "ObjectMgr.h" #include "Pet.h" #include "Player.h" diff --git a/src/server/scripts/Spells/spell_mage.cpp b/src/server/scripts/Spells/spell_mage.cpp index f69a43210..f6d5f240a 100644 --- a/src/server/scripts/Spells/spell_mage.cpp +++ b/src/server/scripts/Spells/spell_mage.cpp @@ -15,7 +15,6 @@ * with this program. If not, see . */ -#include "CreatureScript.h" #include "Pet.h" #include "Player.h" #include "SpellAuraEffects.h" diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp index bcd9673e4..4ab3a1611 100644 --- a/src/server/scripts/Spells/spell_priest.cpp +++ b/src/server/scripts/Spells/spell_priest.cpp @@ -15,7 +15,6 @@ * with this program. If not, see . */ -#include "CreatureScript.h" #include "GridNotifiers.h" #include "Player.h" #include "SpellAuraEffects.h" diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp index 2ec1a3891..bbf9bb52e 100644 --- a/src/server/scripts/Spells/spell_quest.cpp +++ b/src/server/scripts/Spells/spell_quest.cpp @@ -16,7 +16,6 @@ */ #include "CellImpl.h" -#include "CreatureScript.h" #include "CreatureTextMgr.h" #include "GridNotifiers.h" #include "MapMgr.h" diff --git a/src/server/scripts/Spells/spell_rogue.cpp b/src/server/scripts/Spells/spell_rogue.cpp index 5d53b04d0..1d01f3028 100644 --- a/src/server/scripts/Spells/spell_rogue.cpp +++ b/src/server/scripts/Spells/spell_rogue.cpp @@ -17,7 +17,6 @@ #include "AreaDefines.h" #include "CellImpl.h" -#include "CreatureScript.h" #include "GameTime.h" #include "GridNotifiers.h" #include "SpellAuraEffects.h" diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp index cb7da23d9..1a9c545a5 100644 --- a/src/server/scripts/Spells/spell_shaman.cpp +++ b/src/server/scripts/Spells/spell_shaman.cpp @@ -15,7 +15,6 @@ * with this program. If not, see . */ -#include "CreatureScript.h" #include "GridNotifiers.h" #include "ObjectAccessor.h" #include "Player.h" diff --git a/src/server/scripts/Spells/spell_warlock.cpp b/src/server/scripts/Spells/spell_warlock.cpp index b7b09b350..c3410d0da 100644 --- a/src/server/scripts/Spells/spell_warlock.cpp +++ b/src/server/scripts/Spells/spell_warlock.cpp @@ -16,7 +16,6 @@ */ #include "AreaDefines.h" -#include "CreatureScript.h" #include "Pet.h" #include "PetDefines.h" #include "Player.h" diff --git a/src/server/scripts/Spells/spell_warrior.cpp b/src/server/scripts/Spells/spell_warrior.cpp index b6a96008f..b6a4f53e1 100644 --- a/src/server/scripts/Spells/spell_warrior.cpp +++ b/src/server/scripts/Spells/spell_warrior.cpp @@ -15,7 +15,6 @@ * with this program. If not, see . */ -#include "CreatureScript.h" #include "Player.h" #include "SpellAuraEffects.h" #include "SpellInfo.h" diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp index 9242761b4..902193daf 100644 --- a/src/server/scripts/World/go_scripts.cpp +++ b/src/server/scripts/World/go_scripts.cpp @@ -18,7 +18,6 @@ #include "AreaDefines.h" #include "CellImpl.h" #include "Chat.h" -#include "CreatureScript.h" #include "GameEventMgr.h" #include "GameObjectAI.h" #include "GameObjectScript.h" diff --git a/src/server/scripts/World/item_scripts.cpp b/src/server/scripts/World/item_scripts.cpp index 81b2cbb8d..c01767c2d 100644 --- a/src/server/scripts/World/item_scripts.cpp +++ b/src/server/scripts/World/item_scripts.cpp @@ -16,7 +16,6 @@ */ #include "AreaDefines.h" -#include "CreatureScript.h" #include "ItemScript.h" #include "Player.h" #include "ScriptedCreature.h" diff --git a/src/server/scripts/World/server_mail.cpp b/src/server/scripts/World/server_mail.cpp index 1a8d418a4..3a40f7492 100644 --- a/src/server/scripts/World/server_mail.cpp +++ b/src/server/scripts/World/server_mail.cpp @@ -15,7 +15,6 @@ * with this program. If not, see . */ -#include "CreatureScript.h" #include "Player.h" #include "PlayerScript.h" #include "QueryResult.h"