From 5e27a140afb3214cb483ec650b03fca10aa19f65 Mon Sep 17 00:00:00 2001 From: Rampastring Date: Tue, 1 Aug 2023 19:04:37 +0300 Subject: [PATCH] Remove unnecessary usings from the whole solution --- src/MapEditorLauncher/Logger.cs | 4 ---- src/MapEditorLauncher/Properties/AssemblyInfo.cs | 1 - src/TSMapEditor/Initialization/Initializer.cs | 1 - src/TSMapEditor/Initialization/MapLoader.cs | 2 -- src/TSMapEditor/Misc/MapFileWatcher.cs | 3 +-- src/TSMapEditor/Models/OverlayType.cs | 3 +-- src/TSMapEditor/Models/SmudgeType.cs | 8 +------- src/TSMapEditor/Models/Techno.cs | 1 - src/TSMapEditor/Models/Unit.cs | 5 +---- src/TSMapEditor/Rendering/GameClass.cs | 1 - src/TSMapEditor/Rendering/MapView.cs | 1 - src/TSMapEditor/Rendering/TheaterGraphics.cs | 1 - src/TSMapEditor/Scripts/CR04Script.cs | 4 ---- src/TSMapEditor/Scripts/RemoveIMTOs.cs | 6 +----- .../UI/CursorActions/TerrainObjectPlacementAction.cs | 1 - src/TSMapEditor/UI/Sidebar/ObjectListPanel.cs | 1 - src/TSMapEditor/UI/SmudgeCollection.cs | 1 - src/TSMapEditor/UI/TerrainObjectCollection.cs | 1 - src/TSMapEditor/UI/TileDisplay.cs | 1 - src/TSMapEditor/UI/UIManager.cs | 1 - src/TSMapEditor/UI/Windows/HotkeyConfigurationWindow.cs | 1 - src/TSMapEditor/UI/Windows/TeamTypesWindow.cs | 3 +-- 22 files changed, 6 insertions(+), 45 deletions(-) diff --git a/src/MapEditorLauncher/Logger.cs b/src/MapEditorLauncher/Logger.cs index 15ee159a..ab4acd20 100644 --- a/src/MapEditorLauncher/Logger.cs +++ b/src/MapEditorLauncher/Logger.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace MapEditorLauncher { diff --git a/src/MapEditorLauncher/Properties/AssemblyInfo.cs b/src/MapEditorLauncher/Properties/AssemblyInfo.cs index 7c0c4bce..79760419 100644 --- a/src/MapEditorLauncher/Properties/AssemblyInfo.cs +++ b/src/MapEditorLauncher/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/TSMapEditor/Initialization/Initializer.cs b/src/TSMapEditor/Initialization/Initializer.cs index d5d0e71b..3127150f 100644 --- a/src/TSMapEditor/Initialization/Initializer.cs +++ b/src/TSMapEditor/Initialization/Initializer.cs @@ -5,7 +5,6 @@ using TSMapEditor.Models.ArtConfig; using TSMapEditor.Models.Enums; using TSMapEditor.UI; -using static System.Collections.Specialized.BitVector32; namespace TSMapEditor.Initialization { diff --git a/src/TSMapEditor/Initialization/MapLoader.cs b/src/TSMapEditor/Initialization/MapLoader.cs index 4b65a67c..76eff21b 100644 --- a/src/TSMapEditor/Initialization/MapLoader.cs +++ b/src/TSMapEditor/Initialization/MapLoader.cs @@ -1,6 +1,5 @@ using CNCMaps.FileFormats.Encodings; using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Content; using Rampastring.Tools; using System; using System.Collections.Generic; @@ -10,7 +9,6 @@ using TSMapEditor.Models; using TSMapEditor.Models.MapFormat; using TSMapEditor.Rendering; -using TSMapEditor.UI; namespace TSMapEditor.Initialization { diff --git a/src/TSMapEditor/Misc/MapFileWatcher.cs b/src/TSMapEditor/Misc/MapFileWatcher.cs index 4afd14b5..8d6da128 100644 --- a/src/TSMapEditor/Misc/MapFileWatcher.cs +++ b/src/TSMapEditor/Misc/MapFileWatcher.cs @@ -1,5 +1,4 @@ -using Rampastring.XNAUI; -using System; +using System; using System.IO; using TSMapEditor.Models; diff --git a/src/TSMapEditor/Models/OverlayType.cs b/src/TSMapEditor/Models/OverlayType.cs index c2b2dae9..206023e0 100644 --- a/src/TSMapEditor/Models/OverlayType.cs +++ b/src/TSMapEditor/Models/OverlayType.cs @@ -1,5 +1,4 @@ -using Microsoft.Xna.Framework; -using TSMapEditor.Models.ArtConfig; +using TSMapEditor.Models.ArtConfig; using TSMapEditor.Models.Enums; namespace TSMapEditor.Models diff --git a/src/TSMapEditor/Models/SmudgeType.cs b/src/TSMapEditor/Models/SmudgeType.cs index 814f138c..6cf29669 100644 --- a/src/TSMapEditor/Models/SmudgeType.cs +++ b/src/TSMapEditor/Models/SmudgeType.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace TSMapEditor.Models +namespace TSMapEditor.Models { public class SmudgeType : GameObjectType { diff --git a/src/TSMapEditor/Models/Techno.cs b/src/TSMapEditor/Models/Techno.cs index f959863a..5f373211 100644 --- a/src/TSMapEditor/Models/Techno.cs +++ b/src/TSMapEditor/Models/Techno.cs @@ -1,5 +1,4 @@ using Microsoft.Xna.Framework; -using System; namespace TSMapEditor.Models { diff --git a/src/TSMapEditor/Models/Unit.cs b/src/TSMapEditor/Models/Unit.cs index f89a4e8b..c082c832 100644 --- a/src/TSMapEditor/Models/Unit.cs +++ b/src/TSMapEditor/Models/Unit.cs @@ -1,7 +1,4 @@ -using System; -using System.Diagnostics; - -namespace TSMapEditor.Models +namespace TSMapEditor.Models { /// /// Could also be called 'vehicle', but let's respect the original game's naming. diff --git a/src/TSMapEditor/Rendering/GameClass.cs b/src/TSMapEditor/Rendering/GameClass.cs index 86113c9f..d60cd19a 100644 --- a/src/TSMapEditor/Rendering/GameClass.cs +++ b/src/TSMapEditor/Rendering/GameClass.cs @@ -5,7 +5,6 @@ using System; using System.Globalization; using System.IO; -using System.Runtime.Versioning; using System.Text; using System.Threading; using System.Windows.Forms; diff --git a/src/TSMapEditor/Rendering/MapView.cs b/src/TSMapEditor/Rendering/MapView.cs index 2783522d..f1e8743e 100644 --- a/src/TSMapEditor/Rendering/MapView.cs +++ b/src/TSMapEditor/Rendering/MapView.cs @@ -12,7 +12,6 @@ using TSMapEditor.Mutations; using TSMapEditor.Mutations.Classes; using TSMapEditor.Rendering.ObjectRenderers; -using TSMapEditor.Scripts; using TSMapEditor.Settings; using TSMapEditor.UI; using TSMapEditor.UI.Windows; diff --git a/src/TSMapEditor/Rendering/TheaterGraphics.cs b/src/TSMapEditor/Rendering/TheaterGraphics.cs index d4a38a75..24225abf 100644 --- a/src/TSMapEditor/Rendering/TheaterGraphics.cs +++ b/src/TSMapEditor/Rendering/TheaterGraphics.cs @@ -1,6 +1,5 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using Rampastring.Tools; using System; using System.Collections.Generic; using System.Globalization; diff --git a/src/TSMapEditor/Scripts/CR04Script.cs b/src/TSMapEditor/Scripts/CR04Script.cs index ebde12f3..245a8c6e 100644 --- a/src/TSMapEditor/Scripts/CR04Script.cs +++ b/src/TSMapEditor/Scripts/CR04Script.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using TSMapEditor.CCEngine; using TSMapEditor.GameMath; using TSMapEditor.Models; diff --git a/src/TSMapEditor/Scripts/RemoveIMTOs.cs b/src/TSMapEditor/Scripts/RemoveIMTOs.cs index 18e57469..51f01278 100644 --- a/src/TSMapEditor/Scripts/RemoveIMTOs.cs +++ b/src/TSMapEditor/Scripts/RemoveIMTOs.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Collections.Generic; using TSMapEditor.Models; namespace TSMapEditor.Scripts diff --git a/src/TSMapEditor/UI/CursorActions/TerrainObjectPlacementAction.cs b/src/TSMapEditor/UI/CursorActions/TerrainObjectPlacementAction.cs index 545912ac..b18ce89c 100644 --- a/src/TSMapEditor/UI/CursorActions/TerrainObjectPlacementAction.cs +++ b/src/TSMapEditor/UI/CursorActions/TerrainObjectPlacementAction.cs @@ -3,7 +3,6 @@ using TSMapEditor.Models; using TSMapEditor.Mutations.Classes; using TSMapEditor.Rendering; -using TSMapEditor.UI; namespace TSMapEditor.UI.CursorActions { diff --git a/src/TSMapEditor/UI/Sidebar/ObjectListPanel.cs b/src/TSMapEditor/UI/Sidebar/ObjectListPanel.cs index 652fd242..78939372 100644 --- a/src/TSMapEditor/UI/Sidebar/ObjectListPanel.cs +++ b/src/TSMapEditor/UI/Sidebar/ObjectListPanel.cs @@ -8,7 +8,6 @@ using TSMapEditor.Models; using TSMapEditor.Models.ArtConfig; using TSMapEditor.Rendering; -using TSMapEditor.UI.Controls; namespace TSMapEditor.UI.Sidebar { diff --git a/src/TSMapEditor/UI/SmudgeCollection.cs b/src/TSMapEditor/UI/SmudgeCollection.cs index 26d10861..affb4cd7 100644 --- a/src/TSMapEditor/UI/SmudgeCollection.cs +++ b/src/TSMapEditor/UI/SmudgeCollection.cs @@ -1,5 +1,4 @@ using Rampastring.Tools; -using System; using System.Collections.Generic; using TSMapEditor.Models; diff --git a/src/TSMapEditor/UI/TerrainObjectCollection.cs b/src/TSMapEditor/UI/TerrainObjectCollection.cs index 43054dd4..5445ef63 100644 --- a/src/TSMapEditor/UI/TerrainObjectCollection.cs +++ b/src/TSMapEditor/UI/TerrainObjectCollection.cs @@ -1,5 +1,4 @@ using Rampastring.Tools; -using System; using System.Collections.Generic; using TSMapEditor.Models; diff --git a/src/TSMapEditor/UI/TileDisplay.cs b/src/TSMapEditor/UI/TileDisplay.cs index e5f4a6ef..02fca697 100644 --- a/src/TSMapEditor/UI/TileDisplay.cs +++ b/src/TSMapEditor/UI/TileDisplay.cs @@ -3,7 +3,6 @@ using Rampastring.XNAUI.XNAControls; using System; using System.Collections.Generic; -using System.Linq; using TSMapEditor.CCEngine; using TSMapEditor.Rendering; using TSMapEditor.UI.CursorActions; diff --git a/src/TSMapEditor/UI/UIManager.cs b/src/TSMapEditor/UI/UIManager.cs index 5fd9fbda..787a5b80 100644 --- a/src/TSMapEditor/UI/UIManager.cs +++ b/src/TSMapEditor/UI/UIManager.cs @@ -2,7 +2,6 @@ using Rampastring.XNAUI; using Rampastring.XNAUI.XNAControls; using System; -using System.Collections.Generic; using System.Linq; using TSMapEditor.GameMath; using TSMapEditor.Misc; diff --git a/src/TSMapEditor/UI/Windows/HotkeyConfigurationWindow.cs b/src/TSMapEditor/UI/Windows/HotkeyConfigurationWindow.cs index b1a78a8d..70c412ee 100644 --- a/src/TSMapEditor/UI/Windows/HotkeyConfigurationWindow.cs +++ b/src/TSMapEditor/UI/Windows/HotkeyConfigurationWindow.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using TSMapEditor.Settings; -using TSMapEditor.UI; using TSMapEditor.UI.Controls; namespace TSMapEditor.UI.Windows diff --git a/src/TSMapEditor/UI/Windows/TeamTypesWindow.cs b/src/TSMapEditor/UI/Windows/TeamTypesWindow.cs index 53c29c6b..1f5efddb 100644 --- a/src/TSMapEditor/UI/Windows/TeamTypesWindow.cs +++ b/src/TSMapEditor/UI/Windows/TeamTypesWindow.cs @@ -1,5 +1,4 @@ -using Microsoft.Xna.Framework; -using Rampastring.XNAUI; +using Rampastring.XNAUI; using Rampastring.XNAUI.XNAControls; using System; using System.Collections.Generic;