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 84d22411e6..2b067ab78d 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 f38e387d3e..2846f59a42 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 1916359d73..b67fc456d6 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 32cbb26a28..af83d0b9f7 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 50490bb625..43fae2e91d 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 32c848550e..ffb82280e5 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 66ac94100c..f472847eb4 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 33e2fb9fa5..bbd72a0235 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 77bf4b4fa8..ab781a85df 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 ae2d2c5173..4421397831 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 fea4d869e6..0670da786a 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 7b72cf2524..8dff3bba93 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 ed9556de2b..a7147d3282 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 4917351e8f..764af2b9aa 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 f69a43210c..f6d5f240a9 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 bcd9673e46..4ab3a1611c 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 2ec1a3891d..bbf9bb52ea 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 5d53b04d02..1d01f3028c 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 cb7da23d97..1a9c545a59 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 b7b09b350a..c3410d0da0 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 b6a96008f4..b6a4f53e1f 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 9242761b43..902193daf4 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 81b2cbb8d7..c01767c2d3 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 1a8d418a47..3a40f74923 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"