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
+1 -1
View File
@@ -23,7 +23,7 @@ namespace Acore::Crypto
using Key = std::array<uint8, KEY_SIZE_BYTES>; using Key = std::array<uint8, KEY_SIZE_BYTES>;
using Tag = uint8[TAG_SIZE_BYTES]; using Tag = uint8[TAG_SIZE_BYTES];
AES(bool encrypting); explicit AES(bool encrypting);
~AES(); ~AES();
void Init(Key const& key); void Init(Key const& key);
-2
View File
@@ -16,13 +16,11 @@
*/ */
#include "Metric.h" #include "Metric.h"
#include "Common.h"
#include "Config.h" #include "Config.h"
#include "DeadlineTimer.h" #include "DeadlineTimer.h"
#include "Log.h" #include "Log.h"
#include "Strand.h" #include "Strand.h"
#include "Tokenize.h" #include "Tokenize.h"
#include "Util.h"
#include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/replace.hpp>
#include <boost/asio/ip/tcp.hpp> #include <boost/asio/ip/tcp.hpp>
+1 -1
View File
@@ -16,11 +16,11 @@
*/ */
#include "ProcessPriority.h" #include "ProcessPriority.h"
#include "Log.h"
#ifdef _WIN32 // Windows #ifdef _WIN32 // Windows
#include <Windows.h> #include <Windows.h>
#elif defined(__linux__) #elif defined(__linux__)
#include "Log.h"
#include <sched.h> #include <sched.h>
#include <sys/resource.h> #include <sys/resource.h>
#define PROCESS_HIGH_PRIORITY -15 // [-20, 19], default is 0 #define PROCESS_HIGH_PRIORITY -15 // [-20, 19], default is 0
-1
View File
@@ -27,7 +27,6 @@
#include "SpellInfo.h" #include "SpellInfo.h"
#include "SpellMgr.h" #include "SpellMgr.h"
#include "Util.h" #include "Util.h"
#include "WorldSession.h"
int PetAI::Permissible(const Creature* creature) int PetAI::Permissible(const Creature* creature)
{ {
-1
View File
@@ -23,7 +23,6 @@
#include "Log.h" #include "Log.h"
#include "MapReference.h" #include "MapReference.h"
#include "Player.h" #include "Player.h"
#include "SpellMgr.h"
#include "Vehicle.h" #include "Vehicle.h"
class PhasedRespawn : public BasicEvent class PhasedRespawn : public BasicEvent
@@ -16,14 +16,11 @@
*/ */
#include "SmartAI.h" #include "SmartAI.h"
#include "Cell.h"
#include "CellImpl.h" #include "CellImpl.h"
#include "DatabaseEnv.h"
#include "GridDefines.h" #include "GridDefines.h"
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "GridNotifiersImpl.h" #include "GridNotifiersImpl.h"
#include "Group.h" #include "Group.h"
#include "InstanceScript.h"
#include "ObjectDefines.h" #include "ObjectDefines.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
@@ -16,9 +16,7 @@
*/ */
#include "SmartScriptMgr.h" #include "SmartScriptMgr.h"
#include "Cell.h"
#include "CellImpl.h" #include "CellImpl.h"
#include "CreatureTextMgr.h"
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
#include "GameEventMgr.h" #include "GameEventMgr.h"
#include "GridDefines.h" #include "GridDefines.h"
+4 -3
View File
@@ -77,7 +77,7 @@ namespace AddonMgr
{ {
Field* fields = result->Fetch(); Field* fields = result->Fetch();
BannedAddon addon; BannedAddon addon{};
addon.Id = fields[0].GetUInt32() + offset; addon.Id = fields[0].GetUInt32() + offset;
addon.Timestamp = uint32(fields[3].GetUInt64()); addon.Timestamp = uint32(fields[3].GetUInt64());
@@ -113,11 +113,12 @@ namespace AddonMgr
SavedAddon const* GetAddonInfo(const std::string& name) SavedAddon const* GetAddonInfo(const std::string& name)
{ {
for (SavedAddonsList::const_iterator it = m_knownAddons.begin(); it != m_knownAddons.end(); ++it) for (auto const& addon : m_knownAddons)
{ {
SavedAddon const& addon = (*it);
if (addon.Name == name) if (addon.Name == name)
{
return &addon; return &addon;
}
} }
return nullptr; return nullptr;
@@ -29,7 +29,6 @@
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "World.h" #include "World.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include "WorldSession.h"
#include <vector> #include <vector>
constexpr auto AH_MINIMUM_DEPOSIT = 100; constexpr auto AH_MINIMUM_DEPOSIT = 100;
@@ -17,8 +17,6 @@
#include "Battlefield.h" #include "Battlefield.h"
#include "BattlefieldMgr.h" #include "BattlefieldMgr.h"
#include "Common.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "Opcodes.h" #include "Opcodes.h"
#include "Player.h" #include "Player.h"
@@ -16,7 +16,6 @@
*/ */
#include "BattlefieldMgr.h" #include "BattlefieldMgr.h"
#include "ObjectMgr.h"
#include "Player.h" #include "Player.h"
#include "Zones/BattlefieldWG.h" #include "Zones/BattlefieldWG.h"
@@ -37,7 +37,6 @@
#include "GameEventMgr.h" #include "GameEventMgr.h"
#include "GameGraveyard.h" #include "GameGraveyard.h"
#include "Map.h" #include "Map.h"
#include "MapInstanced.h"
#include "MapMgr.h" #include "MapMgr.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "Opcodes.h" #include "Opcodes.h"
@@ -45,7 +44,6 @@
#include "SharedDefines.h" #include "SharedDefines.h"
#include "World.h" #include "World.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include <random>
#include <unordered_map> #include <unordered_map>
/*********************************************************/ /*********************************************************/
@@ -18,11 +18,8 @@
#include "BattlegroundBE.h" #include "BattlegroundBE.h"
#include "Language.h" #include "Language.h"
#include "Log.h" #include "Log.h"
#include "Object.h"
#include "ObjectMgr.h"
#include "Player.h" #include "Player.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include "WorldSession.h"
BattlegroundBE::BattlegroundBE() BattlegroundBE::BattlegroundBE()
{ {
@@ -20,7 +20,6 @@
#include "Creature.h" #include "Creature.h"
#include "GameGraveyard.h" #include "GameGraveyard.h"
#include "Language.h" #include "Language.h"
#include "Object.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "Player.h" #include "Player.h"
#include "Util.h" #include "Util.h"
@@ -17,11 +17,9 @@
#include "BattlegroundNA.h" #include "BattlegroundNA.h"
#include "Language.h" #include "Language.h"
#include "Object.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "Player.h" #include "Player.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include "WorldSession.h"
BattlegroundNA::BattlegroundNA() BattlegroundNA::BattlegroundNA()
{ {
@@ -20,7 +20,6 @@
#include "Log.h" #include "Log.h"
#include "Player.h" #include "Player.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include "WorldSession.h"
BattlegroundRL::BattlegroundRL() BattlegroundRL::BattlegroundRL()
{ {
-1
View File
@@ -22,7 +22,6 @@
#include "Player.h" #include "Player.h"
#include "Timer.h" #include "Timer.h"
#include "World.h" #include "World.h"
#include "WorldPacket.h"
#include <unordered_map> #include <unordered_map>
namespace namespace
@@ -18,9 +18,7 @@
#include "WhoListCacheMgr.h" #include "WhoListCacheMgr.h"
#include "GuildMgr.h" #include "GuildMgr.h"
#include "ObjectAccessor.h" #include "ObjectAccessor.h"
#include "Player.h"
#include "World.h" #include "World.h"
#include "WorldSession.h"
WhoListCacheMgr* WhoListCacheMgr::instance() WhoListCacheMgr* WhoListCacheMgr::instance()
{ {
-1
View File
@@ -19,7 +19,6 @@
#include "AccountMgr.h" #include "AccountMgr.h"
#include "CellImpl.h" #include "CellImpl.h"
#include "Common.h" #include "Common.h"
#include "DatabaseEnv.h"
#include "GridNotifiersImpl.h" #include "GridNotifiersImpl.h"
#include "Language.h" #include "Language.h"
#include "Log.h" #include "Log.h"
@@ -17,7 +17,6 @@
#include "ChatCommandArgs.h" #include "ChatCommandArgs.h"
#include "AchievementMgr.h" #include "AchievementMgr.h"
#include "ChatCommand.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "SpellMgr.h" #include "SpellMgr.h"
#include "Util.h" #include "Util.h"
-1
View File
@@ -26,7 +26,6 @@
#include "TransportMgr.h" #include "TransportMgr.h"
#include "World.h" #include "World.h"
#include <fstream> #include <fstream>
#include <iomanip>
#include <iostream> #include <iostream>
#include <map> #include <map>
@@ -26,7 +26,6 @@
#include "Player.h" #include "Player.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "SharedDefines.h" #include "SharedDefines.h"
#include "WorldSession.h"
namespace lfg namespace lfg
{ {
@@ -52,6 +52,7 @@
// 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
// 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
#include "GridNotifiersImpl.h" #include "GridNotifiersImpl.h"
TrainerSpell const* TrainerSpellData::Find(uint32 spell_id) const TrainerSpell const* TrainerSpellData::Find(uint32 spell_id) const
+1 -1
View File
@@ -20,7 +20,6 @@
#include "BattlefieldMgr.h" #include "BattlefieldMgr.h"
#include "CellImpl.h" #include "CellImpl.h"
#include "Chat.h" #include "Chat.h"
#include "Common.h"
#include "Creature.h" #include "Creature.h"
#include "DynamicTree.h" #include "DynamicTree.h"
#include "DynamicVisibility.h" #include "DynamicVisibility.h"
@@ -53,6 +52,7 @@
// 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
// 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
#include "GridNotifiersImpl.h" #include "GridNotifiersImpl.h"
constexpr float VisibilityDistances[AsUnderlyingType(VisibilityDistanceType::Max)] = constexpr float VisibilityDistances[AsUnderlyingType(VisibilityDistanceType::Max)] =
+6 -6
View File
@@ -28,7 +28,6 @@
#include "BattlegroundMgr.h" #include "BattlegroundMgr.h"
#include "CellImpl.h" #include "CellImpl.h"
#include "Channel.h" #include "Channel.h"
#include "ChannelMgr.h"
#include "CharacterCache.h" #include "CharacterCache.h"
#include "CharacterDatabaseCleaner.h" #include "CharacterDatabaseCleaner.h"
#include "Chat.h" #include "Chat.h"
@@ -42,10 +41,8 @@
#include "GameEventMgr.h" #include "GameEventMgr.h"
#include "GameGraveyard.h" #include "GameGraveyard.h"
#include "GameObjectAI.h" #include "GameObjectAI.h"
#include "GitRevision.h"
#include "GossipDef.h" #include "GossipDef.h"
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "Group.h" #include "Group.h"
#include "GroupMgr.h" #include "GroupMgr.h"
#include "Guild.h" #include "Guild.h"
@@ -56,7 +53,6 @@
#include "LFGMgr.h" #include "LFGMgr.h"
#include "Log.h" #include "Log.h"
#include "LootItemStorage.h" #include "LootItemStorage.h"
#include "MapInstanced.h"
#include "MapMgr.h" #include "MapMgr.h"
#include "ObjectAccessor.h" #include "ObjectAccessor.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
@@ -66,14 +62,12 @@
#include "Pet.h" #include "Pet.h"
#include "PetitionMgr.h" #include "PetitionMgr.h"
#include "Player.h" #include "Player.h"
#include "PoolMgr.h"
#include "QuestDef.h" #include "QuestDef.h"
#include "QueryHolder.h" #include "QueryHolder.h"
#include "ReputationMgr.h" #include "ReputationMgr.h"
#include "Realm.h" #include "Realm.h"
#include "SavingSystem.h" #include "SavingSystem.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "SkillDiscovery.h"
#include "SocialMgr.h" #include "SocialMgr.h"
#include "Spell.h" #include "Spell.h"
#include "SpellAuraEffects.h" #include "SpellAuraEffects.h"
@@ -92,6 +86,12 @@
#include "WorldPacket.h" #include "WorldPacket.h"
#include "WorldSession.h" #include "WorldSession.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 CharacterFlags enum CharacterFlags
{ {
CHARACTER_FLAG_NONE = 0x00000000, CHARACTER_FLAG_NONE = 0x00000000,
@@ -74,7 +74,12 @@
#include "WeatherMgr.h" #include "WeatherMgr.h"
#include "World.h" #include "World.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include "WorldSession.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"
/*********************************************************/ /*********************************************************/
/*** STORAGE SYSTEM ***/ /*** STORAGE SYSTEM ***/
@@ -21,7 +21,6 @@
#include "ChannelMgr.h" #include "ChannelMgr.h"
#include "Formulas.h" #include "Formulas.h"
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "Group.h" #include "Group.h"
#include "Guild.h" #include "Guild.h"
#include "InstanceScript.h" #include "InstanceScript.h"
@@ -38,6 +37,12 @@
#include "Vehicle.h" #include "Vehicle.h"
#include "WeatherMgr.h" #include "WeatherMgr.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"
// Zone Interval should be 1 second // Zone Interval should be 1 second
constexpr auto ZONE_UPDATE_INTERVAL = 1000; constexpr auto ZONE_UPDATE_INTERVAL = 1000;
-3
View File
@@ -28,7 +28,6 @@
#include "Common.h" #include "Common.h"
#include "ConditionMgr.h" #include "ConditionMgr.h"
#include "Creature.h" #include "Creature.h"
#include "CreatureAI.h"
#include "CreatureAIImpl.h" #include "CreatureAIImpl.h"
#include "CreatureGroups.h" #include "CreatureGroups.h"
#include "DisableMgr.h" #include "DisableMgr.h"
@@ -50,7 +49,6 @@
#include "Pet.h" #include "Pet.h"
#include "PetAI.h" #include "PetAI.h"
#include "Player.h" #include "Player.h"
#include "QuestDef.h"
#include "ReputationMgr.h" #include "ReputationMgr.h"
#include "Spell.h" #include "Spell.h"
#include "SpellAuraEffects.h" #include "SpellAuraEffects.h"
@@ -67,7 +65,6 @@
#include "Vehicle.h" #include "Vehicle.h"
#include "World.h" #include "World.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include "WorldSession.h"
#include <math.h> #include <math.h>
float baseMoveSpeed[MAX_MOVE_TYPE] = float baseMoveSpeed[MAX_MOVE_TYPE] =
@@ -17,7 +17,6 @@
#include "Vehicle.h" #include "Vehicle.h"
#include "BattlefieldWG.h" #include "BattlefieldWG.h"
#include "Common.h"
#include "CreatureAI.h" #include "CreatureAI.h"
#include "Log.h" #include "Log.h"
#include "MoveSplineInit.h" #include "MoveSplineInit.h"
@@ -28,7 +27,6 @@
#include "TemporarySummon.h" #include "TemporarySummon.h"
#include "Unit.h" #include "Unit.h"
#include "Util.h" #include "Util.h"
#include "WorldPacket.h"
Vehicle::Vehicle(Unit* unit, VehicleEntry const* vehInfo, uint32 creatureEntry) : Vehicle::Vehicle(Unit* unit, VehicleEntry const* vehInfo, uint32 creatureEntry) :
_me(unit), _vehicleInfo(vehInfo), _usableSeatNum(0), _creatureEntry(creatureEntry), _status(STATUS_NONE) _me(unit), _vehicleInfo(vehInfo), _usableSeatNum(0), _creatureEntry(creatureEntry), _status(STATUS_NONE)
@@ -16,7 +16,6 @@
*/ */
#include "AddonHandler.h" #include "AddonHandler.h"
#include "DatabaseEnv.h"
#include "Log.h" #include "Log.h"
#include "Opcodes.h" #include "Opcodes.h"
#include "zlib.h" #include "zlib.h"
-1
View File
@@ -21,7 +21,6 @@
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
#include "GameGraveyard.h" #include "GameGraveyard.h"
#include "Language.h" #include "Language.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "Opcodes.h" #include "Opcodes.h"
#include "Pet.h" #include "Pet.h"
@@ -16,7 +16,6 @@
*/ */
#include "Log.h" #include "Log.h"
#include "ObjectAccessor.h"
#include "Opcodes.h" #include "Opcodes.h"
#include "Pet.h" #include "Pet.h"
#include "Player.h" #include "Player.h"
-1
View File
@@ -28,7 +28,6 @@
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "Unit.h" #include "Unit.h"
#include "World.h" #include "World.h"
#include "WorldSession.h"
MailSender::MailSender(Object* sender, MailStationery stationery) : m_stationery(stationery) MailSender::MailSender(Object* sender, MailStationery stationery) : m_stationery(stationery)
{ {
@@ -21,7 +21,6 @@
#include "Opcodes.h" #include "Opcodes.h"
#include "Player.h" #include "Player.h"
#include "SpellAuraEffects.h" #include "SpellAuraEffects.h"
#include "WorldSession.h"
uint32 AsyncAuctionListingMgr::auctionListingDiff = 0; uint32 AsyncAuctionListingMgr::auctionListingDiff = 0;
bool AsyncAuctionListingMgr::auctionListingAllowed = false; bool AsyncAuctionListingMgr::auctionListingAllowed = false;
-1
View File
@@ -20,7 +20,6 @@
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
#include "Language.h" #include "Language.h"
#include "ObjectAccessor.h" #include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "Player.h" #include "Player.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "World.h" #include "World.h"
-1
View File
@@ -16,7 +16,6 @@
*/ */
#include "ServerMotd.h" #include "ServerMotd.h"
#include "Common.h"
#include "Opcodes.h" #include "Opcodes.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "Util.h" #include "Util.h"
@@ -16,7 +16,6 @@
*/ */
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptMgrMacros.h"
bool ScriptMgr::OnCriteriaCheck(uint32 scriptId, Player* source, Unit* target, uint32 criteria_id) bool ScriptMgr::OnCriteriaCheck(uint32 scriptId, Player* source, Unit* target, uint32 criteria_id)
{ {
@@ -16,7 +16,6 @@
*/ */
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptMgrMacros.h"
Battleground* ScriptMgr::CreateBattleground(BattlegroundTypeId /*typeId*/) Battleground* ScriptMgr::CreateBattleground(BattlegroundTypeId /*typeId*/)
{ {
@@ -16,7 +16,6 @@
*/ */
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptMgrMacros.h"
#include "Chat.h" #include "Chat.h"
Acore::ChatCommands::ChatCommandTable ScriptMgr::GetChatCommands() Acore::ChatCommands::ChatCommandTable ScriptMgr::GetChatCommands()
@@ -16,7 +16,6 @@
*/ */
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptMgrMacros.h"
bool ScriptMgr::OnConditionCheck(Condition* condition, ConditionSourceInfo& sourceInfo) bool ScriptMgr::OnConditionCheck(Condition* condition, ConditionSourceInfo& sourceInfo)
{ {
@@ -16,7 +16,6 @@
*/ */
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptMgrMacros.h"
void ScriptMgr::OnDynamicObjectUpdate(DynamicObject* dynobj, uint32 diff) void ScriptMgr::OnDynamicObjectUpdate(DynamicObject* dynobj, uint32 diff)
{ {
@@ -16,7 +16,6 @@
*/ */
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptMgrMacros.h"
InstanceScript* ScriptMgr::CreateInstanceScript(InstanceMap* map) InstanceScript* ScriptMgr::CreateInstanceScript(InstanceMap* map)
{ {
@@ -16,7 +16,6 @@
*/ */
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptMgrMacros.h"
#include "OutdoorPvPMgr.h" #include "OutdoorPvPMgr.h"
OutdoorPvP* ScriptMgr::CreateOutdoorPvP(OutdoorPvPData const* data) OutdoorPvP* ScriptMgr::CreateOutdoorPvP(OutdoorPvPData const* data)
@@ -16,7 +16,6 @@
*/ */
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptMgrMacros.h"
#include "SpellScript.h" #include "SpellScript.h"
void ScriptMgr::CreateSpellScripts(uint32 spellId, std::list<SpellScript*>& scriptVector) void ScriptMgr::CreateSpellScripts(uint32 spellId, std::list<SpellScript*>& scriptVector)
@@ -16,7 +16,6 @@
*/ */
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptMgrMacros.h"
#include "Transport.h" #include "Transport.h"
void ScriptMgr::OnAddPassenger(Transport* transport, Player* player) void ScriptMgr::OnAddPassenger(Transport* transport, Player* player)
@@ -16,7 +16,6 @@
*/ */
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptMgrMacros.h"
#include "Vehicle.h" #include "Vehicle.h"
void ScriptMgr::OnInstall(Vehicle* veh) void ScriptMgr::OnInstall(Vehicle* veh)
@@ -18,7 +18,6 @@
#include "ScriptSystem.h" #include "ScriptSystem.h"
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "ScriptMgr.h"
ScriptPointVector const SystemMgr::_empty; ScriptPointVector const SystemMgr::_empty;
@@ -20,9 +20,7 @@
#include "Battleground.h" #include "Battleground.h"
#include "CellImpl.h" #include "CellImpl.h"
#include "Common.h" #include "Common.h"
#include "Formulas.h"
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "InstanceScript.h" #include "InstanceScript.h"
#include "Log.h" #include "Log.h"
#include "ObjectAccessor.h" #include "ObjectAccessor.h"
@@ -40,6 +38,12 @@
#include "Vehicle.h" #include "Vehicle.h"
#include "WorldPacket.h" #include "WorldPacket.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"
class Aura; class Aura;
// //
// EFFECT HANDLER NOTES // EFFECT HANDLER NOTES
+6 -2
View File
@@ -18,9 +18,7 @@
#include "ArenaSpectator.h" #include "ArenaSpectator.h"
#include "CellImpl.h" #include "CellImpl.h"
#include "Common.h" #include "Common.h"
#include "DynamicObject.h"
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "Log.h" #include "Log.h"
#include "ObjectAccessor.h" #include "ObjectAccessor.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
@@ -36,6 +34,12 @@
#include "Vehicle.h" #include "Vehicle.h"
#include "WorldPacket.h" #include "WorldPacket.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"
// update aura target map every 500 ms instead of every update - reduce amount of grid searcher calls // update aura target map every 500 ms instead of every update - reduce amount of grid searcher calls
static constexpr int32 UPDATE_TARGET_MAP_INTERVAL = 500; static constexpr int32 UPDATE_TARGET_MAP_INTERVAL = 500;
+6 -1
View File
@@ -60,7 +60,12 @@
#include "Vehicle.h" #include "Vehicle.h"
#include "World.h" #include "World.h"
#include "WorldPacket.h" #include "WorldPacket.h"
#include "WorldSession.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"
pEffect SpellEffects[TOTAL_SPELL_EFFECTS] = pEffect SpellEffects[TOTAL_SPELL_EFFECTS] =
{ {
-1
View File
@@ -16,7 +16,6 @@
*/ */
#include "SpellInfo.h" #include "SpellInfo.h"
#include "Battleground.h"
#include "Chat.h" #include "Chat.h"
#include "ConditionMgr.h" #include "ConditionMgr.h"
#include "DBCStores.h" #include "DBCStores.h"
-1
View File
@@ -17,7 +17,6 @@
#include "SpellMgr.h" #include "SpellMgr.h"
#include "BattlefieldMgr.h" #include "BattlefieldMgr.h"
#include "BattlefieldWG.h"
#include "BattlegroundIC.h" #include "BattlegroundIC.h"
#include "BattlegroundMgr.h" #include "BattlegroundMgr.h"
#include "Chat.h" #include "Chat.h"
-1
View File
@@ -25,7 +25,6 @@ EndScriptData */
#include "ArenaTeamMgr.h" #include "ArenaTeamMgr.h"
#include "Chat.h" #include "Chat.h"
#include "Language.h" #include "Language.h"
#include "ObjectMgr.h"
#include "Player.h" #include "Player.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
-1
View File
@@ -26,7 +26,6 @@ EndScriptData */
#include "Guild.h" #include "Guild.h"
#include "GuildMgr.h" #include "GuildMgr.h"
#include "Language.h" #include "Language.h"
#include "ObjectAccessor.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#if AC_COMPILER == AC_COMPILER_GNU #if AC_COMPILER == AC_COMPILER_GNU
@@ -23,7 +23,6 @@ Category: commandscripts
EndScriptData */ EndScriptData */
#include "Channel.h" #include "Channel.h"
#include "ChannelMgr.h"
#include "Chat.h" #include "Chat.h"
#include "DBCStores.h" #include "DBCStores.h"
#include "DatabaseEnv.h" #include "DatabaseEnv.h"
+6 -1
View File
@@ -23,7 +23,6 @@
#include "Chat.h" #include "Chat.h"
#include "GameGraveyard.h" #include "GameGraveyard.h"
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "Group.h" #include "Group.h"
#include "GroupMgr.h" #include "GroupMgr.h"
#include "GuildMgr.h" #include "GuildMgr.h"
@@ -43,6 +42,12 @@
#include "TargetedMovementGenerator.h" #include "TargetedMovementGenerator.h"
#include "WeatherMgr.h" #include "WeatherMgr.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"
#if AC_COMPILER == AC_COMPILER_GNU #if AC_COMPILER == AC_COMPILER_GNU
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif #endif
+6 -1
View File
@@ -19,7 +19,6 @@
#include "GameObjectAI.h" #include "GameObjectAI.h"
#include "GossipDef.h" #include "GossipDef.h"
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "Group.h" #include "Group.h"
#include "LFGMgr.h" #include "LFGMgr.h"
#include "PassiveAI.h" #include "PassiveAI.h"
@@ -29,6 +28,12 @@
#include "SpellScript.h" #include "SpellScript.h"
#include "TaskScheduler.h" #include "TaskScheduler.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"
/////////////////////////////////////// ///////////////////////////////////////
////// ITEMS FIXES, BASIC STUFF ////// ITEMS FIXES, BASIC STUFF
/////////////////////////////////////// ///////////////////////////////////////
@@ -18,7 +18,6 @@
#include "InstanceScript.h" #include "InstanceScript.h"
#include "Player.h" #include "Player.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "old_hillsbrad.h" #include "old_hillsbrad.h"
const Position instancePositions[INSTANCE_POSITIONS_COUNT] = const Position instancePositions[INSTANCE_POSITIONS_COUNT] =
@@ -28,7 +28,6 @@ quest_a_pawn_on_the_eternal_pawn
EndContentData */ EndContentData */
#include "AccountMgr.h" #include "AccountMgr.h"
#include "BanMgr.h"
#include "GameObject.h" #include "GameObject.h"
#include "GameObjectAI.h" #include "GameObjectAI.h"
#include "Group.h" #include "Group.h"
@@ -38,7 +37,6 @@ EndContentData */
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "Spell.h" #include "Spell.h"
#include "SpellInfo.h" #include "SpellInfo.h"
#include "WorldSession.h"
/*#### /*####
# quest_a_pawn_on_the_eternal_board (Defines) # quest_a_pawn_on_the_eternal_board (Defines)
@@ -15,12 +15,10 @@
* with this program. If not, see <http://www.gnu.org/licenses/>. * with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "CombatAI.h"
#include "PassiveAI.h" #include "PassiveAI.h"
#include "Player.h" #include "Player.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptedEscortAI.h"
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "SpellAuras.h" #include "SpellAuras.h"
#include "SpellInfo.h" #include "SpellInfo.h"
@@ -17,7 +17,6 @@
#include "InstanceScript.h" #include "InstanceScript.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "magtheridons_lair.h" #include "magtheridons_lair.h"
DoorData const doorData[] = DoorData const doorData[] =
@@ -31,7 +31,6 @@ EndContentData */
#include "Cell.h" #include "Cell.h"
#include "CellImpl.h" #include "CellImpl.h"
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
@@ -40,6 +39,12 @@ EndContentData */
#include "SpellInfo.h" #include "SpellInfo.h"
#include "SpellScript.h" #include "SpellScript.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"
// Ours // Ours
enum deathsdoorfell enum deathsdoorfell
{ {
@@ -44,7 +44,6 @@ EndContentData */
#include "ScriptedEscortAI.h" #include "ScriptedEscortAI.h"
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "SpellScript.h" #include "SpellScript.h"
#include "WorldSession.h"
// Ours // Ours
class spell_q10612_10613_the_fel_and_the_furious : public SpellScriptLoader class spell_q10612_10613_the_fel_and_the_furious : public SpellScriptLoader
@@ -36,7 +36,6 @@ EndContentData */
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptedEscortAI.h" #include "ScriptedEscortAI.h"
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "WorldSession.h"
/*###### /*######
## npc_raliq_the_drunk ## npc_raliq_the_drunk
@@ -40,7 +40,6 @@ EndContentData */
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "SpellAuras.h" #include "SpellAuras.h"
#include "SpellScript.h" #include "SpellScript.h"
#include "WorldSession.h"
// Ours // Ours
enum fumping enum fumping
@@ -36,7 +36,6 @@ EndContentData */
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptedEscortAI.h" #include "ScriptedEscortAI.h"
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "WorldSession.h"
// Ours // Ours
enum eNaturalist enum eNaturalist
+6 -1
View File
@@ -24,12 +24,17 @@
#include "CellImpl.h" #include "CellImpl.h"
#include "CombatAI.h" #include "CombatAI.h"
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "PassiveAI.h" #include "PassiveAI.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "SpellAuraEffects.h" #include "SpellAuraEffects.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 DeathKnightSpells enum DeathKnightSpells
{ {
SPELL_DK_SUMMON_GARGOYLE_1 = 49206, SPELL_DK_SUMMON_GARGOYLE_1 = 49206,
@@ -45,6 +45,7 @@
// 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
// 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
#include "GridNotifiersImpl.h" #include "GridNotifiersImpl.h"
// 46642 - 5,000 Gold // 46642 - 5,000 Gold
@@ -34,6 +34,7 @@
// 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
// 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
#include "GridNotifiersImpl.h" #include "GridNotifiersImpl.h"
enum HunterSpells enum HunterSpells
@@ -16,7 +16,6 @@
*/ */
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "ObjectMgr.h"
#include "PassiveAI.h" #include "PassiveAI.h"
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
@@ -20,7 +20,6 @@
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "WorldSession.h"
constexpr auto SPELL_TRICK = 24714; constexpr auto SPELL_TRICK = 24714;
constexpr auto SPELL_TREAT = 24715; constexpr auto SPELL_TREAT = 24715;
@@ -27,7 +27,6 @@ EndScriptData */
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "SpellInfo.h" #include "SpellInfo.h"
#include "WorldSession.h"
/* /*
A few notes for future developement: A few notes for future developement:
-1
View File
@@ -27,7 +27,6 @@ EndScriptData
#include "ScriptMgr.h" #include "ScriptMgr.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "ScriptedGossip.h" #include "ScriptedGossip.h"
#include "WorldSession.h"
#define GOSSIP_NETHER_DRAKE "I'm ready to fly! Take me up, dragon!" #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." #define GOSSIP_IRONWING "I'd like to take a flight around Stormwind Harbor."
+6 -3
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 npc_firework 100% NPC's summoned by rockets and rocket clusters, for making them cast visual
EndContentData */ EndContentData */
#include "Cell.h"
#include "CellImpl.h" #include "CellImpl.h"
#include "Chat.h" #include "Chat.h"
#include "CombatAI.h" #include "CombatAI.h"
@@ -44,8 +43,6 @@ EndContentData */
#include "DBCStructure.h" #include "DBCStructure.h"
#include "GameEventMgr.h" #include "GameEventMgr.h"
#include "GridNotifiers.h" #include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "Group.h"
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "PassiveAI.h" #include "PassiveAI.h"
#include "Pet.h" #include "Pet.h"
@@ -58,6 +55,12 @@ EndContentData */
#include "WaypointMgr.h" #include "WaypointMgr.h"
#include "World.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 enum elderClearwater
{ {
EVENT_CLEARWATER_ANNOUNCE = 1, EVENT_CLEARWATER_ANNOUNCE = 1,
-1
View File
@@ -37,7 +37,6 @@
#include "adt.h" #include "adt.h"
#include "wdt.h" #include "wdt.h"
#include "G3D/Plane.h"
#include <fcntl.h> #include <fcntl.h>
#if defined( __GNUC__ ) #if defined( __GNUC__ )
-1
View File
@@ -20,7 +20,6 @@
#include "Constants.h" #include "Constants.h"
#include "DoodadHandler.h" #include "DoodadHandler.h"
#include "WorldModelHandler.h" #include "WorldModelHandler.h"
#include <limits.h>
Geometry::Geometry() : Transform(false) Geometry::Geometry() : Transform(false)
{ {
@@ -17,8 +17,6 @@
#include "ObjectDataHandler.h" #include "ObjectDataHandler.h"
#include "ADT.h" #include "ADT.h"
#include "Chunk.h"
#include "ChunkedData.h"
void ObjectDataHandler::ProcessMapChunk( MapChunk* chunk ) void ObjectDataHandler::ProcessMapChunk( MapChunk* chunk )
{ {
-1
View File
@@ -18,7 +18,6 @@
#define _CRT_SECURE_NO_DEPRECATE #define _CRT_SECURE_NO_DEPRECATE
#include <cerrno> #include <cerrno>
#include <cstdio> #include <cstdio>
#include <iostream>
#include <list> #include <list>
#include <map> #include <map>
#include <sys/stat.h> #include <sys/stat.h>
-1
View File
@@ -22,7 +22,6 @@
#include <cassert> #include <cassert>
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <fstream>
#include <map> #include <map>
#include <utility> #include <utility>
#undef min #undef min