From 2f508037f028af4ab2656811983b5a0342faf37c Mon Sep 17 00:00:00 2001 From: WeylonSantana <63019821+WeylonSantana@users.noreply.github.com> Date: Tue, 2 Jul 2024 23:59:40 -0300 Subject: [PATCH] removing unused usings from server core Remove --- .../Core/MapInstancing/Controllers/InstanceController.cs | 5 ----- .../Core/MapInstancing/InstanceProcessor.cs | 5 ----- Intersect.Server.Core/Entities/BankInterface.cs | 8 -------- Intersect.Server.Core/Entities/Combat/Buff.cs | 3 +-- Intersect.Server.Core/Entities/Combat/Dash.cs | 1 - Intersect.Server.Core/Entities/Combat/DoT.cs | 4 ---- Intersect.Server.Core/Entities/Combat/Stat.cs | 6 ------ Intersect.Server.Core/Entities/Combat/Status.cs | 5 ----- Intersect.Server.Core/Entities/Entity.Comparison.cs | 2 -- Intersect.Server.Core/Entities/Events/CommandInstance.cs | 4 ---- .../Entities/Events/CommandProcessing.cs | 3 --- .../Entities/Events/ConditionHandlerRegistry.cs | 7 +------ Intersect.Server.Core/Entities/Events/Conditions.cs | 5 ----- Intersect.Server.Core/Entities/Events/Event.cs | 4 ---- .../Entities/Events/EventPageInstance.cs | 2 -- .../Entities/Events/VariableCheckHandlerRegistry.cs | 7 +------ Intersect.Server.Core/Entities/Npc.cs | 5 ----- Intersect.Server.Core/Entities/Resource.cs | 2 -- Intersect.Server.Core/Entities/Trading.cs | 3 --- Intersect.Server.Core/General/Formulas.cs | 3 --- Intersect.Server.Core/General/Globals.cs | 5 ----- Intersect.Server.Core/General/Time.cs | 2 -- Intersect.Server.Core/Localization/Strings.cs | 3 --- Intersect.Server.Core/Maps/MapActionMessages.cs | 3 +-- Intersect.Server.Core/Maps/MapAnimations.cs | 3 +-- Intersect.Server.Core/Maps/MapController.cs | 3 --- Intersect.Server.Core/Maps/MapEntityMovements.cs | 7 +------ Intersect.Server.Core/Maps/MapInstance.cs | 3 --- Intersect.Server.Core/Maps/MapItemInstance.cs | 2 -- Intersect.Server.Core/Maps/MapItemSpawn.cs | 2 -- Intersect.Server.Core/Maps/MapTileLoc.cs | 2 -- Intersect.Server.Core/Maps/MapTrapInstance.cs | 3 --- Intersect.Server.Core/Maps/TileHelper.cs | 2 -- Intersect.Server.Core/Networking/PacketHandler.cs | 5 ----- Intersect.Server.Core/Networking/PacketSender.cs | 5 ----- 35 files changed, 6 insertions(+), 128 deletions(-) diff --git a/Intersect.Server.Core/Core/MapInstancing/Controllers/InstanceController.cs b/Intersect.Server.Core/Core/MapInstancing/Controllers/InstanceController.cs index 87d36fcc56..0f32195a2f 100644 --- a/Intersect.Server.Core/Core/MapInstancing/Controllers/InstanceController.cs +++ b/Intersect.Server.Core/Core/MapInstancing/Controllers/InstanceController.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Intersect.Server.Entities; namespace Intersect.Server.Core.MapInstancing.Controllers; diff --git a/Intersect.Server.Core/Core/MapInstancing/InstanceProcessor.cs b/Intersect.Server.Core/Core/MapInstancing/InstanceProcessor.cs index ed9b0253ec..d3ecabd5dd 100644 --- a/Intersect.Server.Core/Core/MapInstancing/InstanceProcessor.cs +++ b/Intersect.Server.Core/Core/MapInstancing/InstanceProcessor.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Intersect.Server.Core.MapInstancing.Controllers; using Intersect.Server.Entities; using Intersect.Server.Maps; diff --git a/Intersect.Server.Core/Entities/BankInterface.cs b/Intersect.Server.Core/Entities/BankInterface.cs index a01ad79de2..2a3d0d9b17 100644 --- a/Intersect.Server.Core/Entities/BankInterface.cs +++ b/Intersect.Server.Core/Entities/BankInterface.cs @@ -5,15 +5,7 @@ using Intersect.Server.Database.PlayerData.Players; using Intersect.Server.Localization; using Intersect.Server.Networking; -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Intersect.Localization; -using Intersect.Utilities; -using Serilog; using Log = Intersect.Logging.Log; namespace Intersect.Server.Entities diff --git a/Intersect.Server.Core/Entities/Combat/Buff.cs b/Intersect.Server.Core/Entities/Combat/Buff.cs index 30133d637a..e27451f64a 100644 --- a/Intersect.Server.Core/Entities/Combat/Buff.cs +++ b/Intersect.Server.Core/Entities/Combat/Buff.cs @@ -1,5 +1,4 @@ -using Intersect.GameObjects; -using Intersect.Server.General; +using Intersect.GameObjects; namespace Intersect.Server.Entities.Combat { diff --git a/Intersect.Server.Core/Entities/Combat/Dash.cs b/Intersect.Server.Core/Entities/Combat/Dash.cs index 3901ac3367..8de4da56b3 100644 --- a/Intersect.Server.Core/Entities/Combat/Dash.cs +++ b/Intersect.Server.Core/Entities/Combat/Dash.cs @@ -1,4 +1,3 @@ -using System; using Intersect.Enums; using Intersect.Logging; using Intersect.Server.Networking; diff --git a/Intersect.Server.Core/Entities/Combat/DoT.cs b/Intersect.Server.Core/Entities/Combat/DoT.cs index 82525322e1..aa14c61e02 100644 --- a/Intersect.Server.Core/Entities/Combat/DoT.cs +++ b/Intersect.Server.Core/Entities/Combat/DoT.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; - using Intersect.Enums; using Intersect.GameObjects; using Intersect.Utilities; diff --git a/Intersect.Server.Core/Entities/Combat/Stat.cs b/Intersect.Server.Core/Entities/Combat/Stat.cs index f10dd92fbf..0684a62222 100644 --- a/Intersect.Server.Core/Entities/Combat/Stat.cs +++ b/Intersect.Server.Core/Entities/Combat/Stat.cs @@ -1,11 +1,5 @@ -using System; using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; - -using Intersect.Enums; using Intersect.GameObjects; -using Intersect.Server.General; namespace Intersect.Server.Entities.Combat { diff --git a/Intersect.Server.Core/Entities/Combat/Status.cs b/Intersect.Server.Core/Entities/Combat/Status.cs index 0075566be9..68949d9dee 100644 --- a/Intersect.Server.Core/Entities/Combat/Status.cs +++ b/Intersect.Server.Core/Entities/Combat/Status.cs @@ -1,11 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; - using Intersect.Enums; using Intersect.GameObjects; using Intersect.Server.General; -using Intersect.Server.Localization; using Intersect.Server.Networking; using Intersect.Utilities; diff --git a/Intersect.Server.Core/Entities/Entity.Comparison.cs b/Intersect.Server.Core/Entities/Entity.Comparison.cs index 677d1fe7b3..b2e21e2a39 100644 --- a/Intersect.Server.Core/Entities/Entity.Comparison.cs +++ b/Intersect.Server.Core/Entities/Entity.Comparison.cs @@ -1,5 +1,3 @@ -using System; - namespace Intersect.Server.Entities { diff --git a/Intersect.Server.Core/Entities/Events/CommandInstance.cs b/Intersect.Server.Core/Entities/Events/CommandInstance.cs index b4fef03ab7..220d737469 100644 --- a/Intersect.Server.Core/Entities/Events/CommandInstance.cs +++ b/Intersect.Server.Core/Entities/Events/CommandInstance.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; - using Intersect.GameObjects.Events.Commands; namespace Intersect.Server.Entities.Events diff --git a/Intersect.Server.Core/Entities/Events/CommandProcessing.cs b/Intersect.Server.Core/Entities/Events/CommandProcessing.cs index 05cad3df99..d04e00e949 100644 --- a/Intersect.Server.Core/Entities/Events/CommandProcessing.cs +++ b/Intersect.Server.Core/Entities/Events/CommandProcessing.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using System.Text; using Intersect.Enums; using Intersect.GameObjects; diff --git a/Intersect.Server.Core/Entities/Events/ConditionHandlerRegistry.cs b/Intersect.Server.Core/Entities/Events/ConditionHandlerRegistry.cs index c7d8a157d9..1a74ef11a5 100644 --- a/Intersect.Server.Core/Entities/Events/ConditionHandlerRegistry.cs +++ b/Intersect.Server.Core/Entities/Events/ConditionHandlerRegistry.cs @@ -1,11 +1,6 @@ -using Intersect.GameObjects; +using Intersect.GameObjects; using Intersect.GameObjects.Events; -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; -using System.Text; -using System.Threading.Tasks; namespace Intersect.Server.Entities.Events { diff --git a/Intersect.Server.Core/Entities/Events/Conditions.cs b/Intersect.Server.Core/Entities/Events/Conditions.cs index cad6ce4a54..86f7680bbe 100644 --- a/Intersect.Server.Core/Entities/Events/Conditions.cs +++ b/Intersect.Server.Core/Entities/Events/Conditions.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; -using System.Reflection; using Intersect.Enums; using Intersect.GameObjects; using Intersect.GameObjects.Conditions; diff --git a/Intersect.Server.Core/Entities/Events/Event.cs b/Intersect.Server.Core/Entities/Events/Event.cs index 5e12b87f20..7f7570754f 100644 --- a/Intersect.Server.Core/Entities/Events/Event.cs +++ b/Intersect.Server.Core/Entities/Events/Event.cs @@ -1,11 +1,7 @@ -using System; -using System.Collections.Generic; - using Intersect.Enums; using Intersect.GameObjects.Events; using Intersect.GameObjects.Events.Commands; using Intersect.Logging; -using Intersect.Server.General; using Intersect.Server.Localization; using Intersect.Server.Maps; using Intersect.Server.Networking; diff --git a/Intersect.Server.Core/Entities/Events/EventPageInstance.cs b/Intersect.Server.Core/Entities/Events/EventPageInstance.cs index d487bdb037..16ce5c45ab 100644 --- a/Intersect.Server.Core/Entities/Events/EventPageInstance.cs +++ b/Intersect.Server.Core/Entities/Events/EventPageInstance.cs @@ -1,5 +1,3 @@ -using System; -using System.Linq; using Intersect.Enums; using Intersect.GameObjects; using Intersect.GameObjects.Events; diff --git a/Intersect.Server.Core/Entities/Events/VariableCheckHandlerRegistry.cs b/Intersect.Server.Core/Entities/Events/VariableCheckHandlerRegistry.cs index 901aff4ea7..075961593e 100644 --- a/Intersect.Server.Core/Entities/Events/VariableCheckHandlerRegistry.cs +++ b/Intersect.Server.Core/Entities/Events/VariableCheckHandlerRegistry.cs @@ -1,11 +1,6 @@ -using Intersect.GameObjects.Events; +using Intersect.GameObjects.Events; using Intersect.GameObjects.Switches_and_Variables; -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; -using System.Text; -using System.Threading.Tasks; namespace Intersect.Server.Entities.Events { diff --git a/Intersect.Server.Core/Entities/Npc.cs b/Intersect.Server.Core/Entities/Npc.cs index 49b43c85d4..ac42d0fc4e 100644 --- a/Intersect.Server.Core/Entities/Npc.cs +++ b/Intersect.Server.Core/Entities/Npc.cs @@ -1,9 +1,4 @@ -using System; using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; using Intersect.Enums; using Intersect.GameObjects; using Intersect.Logging; diff --git a/Intersect.Server.Core/Entities/Resource.cs b/Intersect.Server.Core/Entities/Resource.cs index bd895b8d86..a87fe887b0 100644 --- a/Intersect.Server.Core/Entities/Resource.cs +++ b/Intersect.Server.Core/Entities/Resource.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using Intersect.Enums; using Intersect.GameObjects; using Intersect.Network.Packets.Server; diff --git a/Intersect.Server.Core/Entities/Trading.cs b/Intersect.Server.Core/Entities/Trading.cs index be6d5ca740..286ae1189c 100644 --- a/Intersect.Server.Core/Entities/Trading.cs +++ b/Intersect.Server.Core/Entities/Trading.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; - using Intersect.Server.Database; namespace Intersect.Server.Entities diff --git a/Intersect.Server.Core/General/Formulas.cs b/Intersect.Server.Core/General/Formulas.cs index 233477fb8e..cedaa386c7 100644 --- a/Intersect.Server.Core/General/Formulas.cs +++ b/Intersect.Server.Core/General/Formulas.cs @@ -1,6 +1,3 @@ -using System; -using System.IO; - using Intersect.Enums; using Intersect.Server.Core; using Intersect.Server.Entities; diff --git a/Intersect.Server.Core/General/Globals.cs b/Intersect.Server.Core/General/Globals.cs index f0feac2505..9c50beed1e 100644 --- a/Intersect.Server.Core/General/Globals.cs +++ b/Intersect.Server.Core/General/Globals.cs @@ -1,12 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Linq; - using Intersect.GameObjects; using Intersect.Server.Entities; using Intersect.Server.Maps; using Intersect.Server.Networking; -using Intersect.Utilities; namespace Intersect.Server.General { diff --git a/Intersect.Server.Core/General/Time.cs b/Intersect.Server.Core/General/Time.cs index ebdaad1deb..1a521dfd9c 100644 --- a/Intersect.Server.Core/General/Time.cs +++ b/Intersect.Server.Core/General/Time.cs @@ -1,5 +1,3 @@ -using System; - using Intersect.GameObjects; using Intersect.Server.Networking; using Intersect.Utilities; diff --git a/Intersect.Server.Core/Localization/Strings.cs b/Intersect.Server.Core/Localization/Strings.cs index 1f66836c00..24dd54d3a6 100644 --- a/Intersect.Server.Core/Localization/Strings.cs +++ b/Intersect.Server.Core/Localization/Strings.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.IO; using System.Text; using Intersect.Config; using Intersect.Localization; diff --git a/Intersect.Server.Core/Maps/MapActionMessages.cs b/Intersect.Server.Core/Maps/MapActionMessages.cs index e6998deb89..0024c05421 100644 --- a/Intersect.Server.Core/Maps/MapActionMessages.cs +++ b/Intersect.Server.Core/Maps/MapActionMessages.cs @@ -1,6 +1,5 @@ -using Intersect.Network.Packets.Server; +using Intersect.Network.Packets.Server; using Intersect.Server.Entities; -using System.Collections.Generic; namespace Intersect.Server.Maps { diff --git a/Intersect.Server.Core/Maps/MapAnimations.cs b/Intersect.Server.Core/Maps/MapAnimations.cs index df57e54ac3..4812b0e646 100644 --- a/Intersect.Server.Core/Maps/MapAnimations.cs +++ b/Intersect.Server.Core/Maps/MapAnimations.cs @@ -1,6 +1,5 @@ -using Intersect.Network.Packets.Server; +using Intersect.Network.Packets.Server; using Intersect.Server.Entities; -using System.Collections.Generic; namespace Intersect.Server.Maps { diff --git a/Intersect.Server.Core/Maps/MapController.cs b/Intersect.Server.Core/Maps/MapController.cs index 1c8fad5711..2aa9ffdbf4 100644 --- a/Intersect.Server.Core/Maps/MapController.cs +++ b/Intersect.Server.Core/Maps/MapController.cs @@ -1,9 +1,6 @@ -using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Diagnostics.CodeAnalysis; -using System.Linq; using Intersect.Compression; using Intersect.Enums; using Intersect.GameObjects; diff --git a/Intersect.Server.Core/Maps/MapEntityMovements.cs b/Intersect.Server.Core/Maps/MapEntityMovements.cs index 935d0bff76..eff13e62f8 100644 --- a/Intersect.Server.Core/Maps/MapEntityMovements.cs +++ b/Intersect.Server.Core/Maps/MapEntityMovements.cs @@ -1,10 +1,5 @@ -using Intersect.Network.Packets.Server; +using Intersect.Network.Packets.Server; using Intersect.Server.Entities; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Intersect.Server.Maps { diff --git a/Intersect.Server.Core/Maps/MapInstance.cs b/Intersect.Server.Core/Maps/MapInstance.cs index fcbccbedb9..09d5187b45 100644 --- a/Intersect.Server.Core/Maps/MapInstance.cs +++ b/Intersect.Server.Core/Maps/MapInstance.cs @@ -1,7 +1,4 @@ -using System; using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; using Intersect.Enums; using Intersect.GameObjects; using Intersect.GameObjects.Events; diff --git a/Intersect.Server.Core/Maps/MapItemInstance.cs b/Intersect.Server.Core/Maps/MapItemInstance.cs index d7ebcdf31d..89f87a953c 100644 --- a/Intersect.Server.Core/Maps/MapItemInstance.cs +++ b/Intersect.Server.Core/Maps/MapItemInstance.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using Intersect.Server.Database; using Intersect.Server.Database.PlayerData.Players; diff --git a/Intersect.Server.Core/Maps/MapItemSpawn.cs b/Intersect.Server.Core/Maps/MapItemSpawn.cs index 82f50dcfb8..e9ef16bdc8 100644 --- a/Intersect.Server.Core/Maps/MapItemSpawn.cs +++ b/Intersect.Server.Core/Maps/MapItemSpawn.cs @@ -1,5 +1,3 @@ -using System; - namespace Intersect.Server.Maps { diff --git a/Intersect.Server.Core/Maps/MapTileLoc.cs b/Intersect.Server.Core/Maps/MapTileLoc.cs index 5c89c0b639..2d07841395 100644 --- a/Intersect.Server.Core/Maps/MapTileLoc.cs +++ b/Intersect.Server.Core/Maps/MapTileLoc.cs @@ -1,5 +1,3 @@ -using System; - namespace Intersect.Server.Maps { public partial struct MapTileLoc diff --git a/Intersect.Server.Core/Maps/MapTrapInstance.cs b/Intersect.Server.Core/Maps/MapTrapInstance.cs index 784373a1bc..2d4ed2d5a0 100644 --- a/Intersect.Server.Core/Maps/MapTrapInstance.cs +++ b/Intersect.Server.Core/Maps/MapTrapInstance.cs @@ -1,9 +1,6 @@ -using System; - using Intersect.GameObjects; using Intersect.Server.Entities; using Intersect.Server.Entities.Events; -using Intersect.Server.General; using Intersect.Server.Maps; using Intersect.Utilities; diff --git a/Intersect.Server.Core/Maps/TileHelper.cs b/Intersect.Server.Core/Maps/TileHelper.cs index d9a93b134d..7faa5225c5 100644 --- a/Intersect.Server.Core/Maps/TileHelper.cs +++ b/Intersect.Server.Core/Maps/TileHelper.cs @@ -1,5 +1,3 @@ -using System; - using Intersect.Enums; using Intersect.Server.Database; diff --git a/Intersect.Server.Core/Networking/PacketHandler.cs b/Intersect.Server.Core/Networking/PacketHandler.cs index 84dff0bbd4..2eaa222dce 100644 --- a/Intersect.Server.Core/Networking/PacketHandler.cs +++ b/Intersect.Server.Core/Networking/PacketHandler.cs @@ -3,9 +3,7 @@ using Intersect.GameObjects.Crafting; using Intersect.GameObjects.Events; using Intersect.GameObjects.Maps; -using Intersect.GameObjects.Maps.MapList; using Intersect.Logging; -using Intersect.Models; using Intersect.Network; using Intersect.Network.Packets; using Intersect.Network.Packets.Client; @@ -21,10 +19,7 @@ using Intersect.Utilities; using System.Collections.Concurrent; using System.Diagnostics; -using System.Security.Cryptography; using System.Text; -using Amib.Threading; -using Intersect.Network.Packets.Editor; using Intersect.Network.Packets.Server; using Intersect.Server.Core; using ChatMsgPacket = Intersect.Network.Packets.Client.ChatMsgPacket; diff --git a/Intersect.Server.Core/Networking/PacketSender.cs b/Intersect.Server.Core/Networking/PacketSender.cs index c65a4d8603..7a74d7f7d6 100644 --- a/Intersect.Server.Core/Networking/PacketSender.cs +++ b/Intersect.Server.Core/Networking/PacketSender.cs @@ -1,9 +1,4 @@ -using System; using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO.Hashing; -using System.Linq; using Intersect.Enums; using Intersect.GameObjects; using Intersect.GameObjects.Crafting;