From d6846f5101eea58b5b47b31b7b6db17376cee522 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 27 Nov 2024 22:07:01 +0100 Subject: [PATCH] Remove all unneccessary usings --- Axolotl2D.Cef/CefBrowser.cs | 4 ---- Axolotl2D.Cef/CefBrowserManager.cs | 5 ----- Axolotl2D.Cef/Hosting.cs | 5 ----- Axolotl2D.Example/ExampleGame.cs | 3 --- Axolotl2D.Example/Program.cs | 1 - Axolotl2D.Example/Scenes/ExampleScene.cs | 5 ----- Axolotl2D.Example/Scenes/ExampleScene2.cs | 5 ----- Axolotl2D/Audio/AudioPlayer.cs | 7 +------ Axolotl2D/Audio/Song.cs | 7 +------ Axolotl2D/Color.cs | 8 +------- Axolotl2D/Drawable/BaseDrawable.cs | 9 +-------- Axolotl2D/Drawable/SimpleQuad.cs | 8 +------- Axolotl2D/Drawable/Sprite.cs | 6 ------ Axolotl2D/Drawable/SpriteManager.cs | 5 ----- Axolotl2D/Exceptions/EngineUninitializedException.cs | 8 +------- Axolotl2D/Exceptions/ShaderCompileException.cs | 5 ----- Axolotl2D/Exceptions/ShaderNotCompiledException.cs | 5 ----- Axolotl2D/Game.cs | 3 +-- Axolotl2D/Helpers/LazyDependencyLoader.cs | 5 ----- Axolotl2D/Hosting.cs | 5 ----- Axolotl2D/IGameHost.cs | 5 ----- Axolotl2D/Scenes/BaseScene.cs | 7 +------ Axolotl2D/Scenes/DefaultSceneAttribute.cs | 8 +------- Axolotl2D/Scenes/SceneGameHost.cs | 6 ------ Axolotl2D/Shaders/Shader.cs | 5 ----- Axolotl2D/SimpleGameHost.cs | 9 +-------- 26 files changed, 10 insertions(+), 139 deletions(-) diff --git a/Axolotl2D.Cef/CefBrowser.cs b/Axolotl2D.Cef/CefBrowser.cs index 814e2c6..99230eb 100644 --- a/Axolotl2D.Cef/CefBrowser.cs +++ b/Axolotl2D.Cef/CefBrowser.cs @@ -1,13 +1,9 @@ using Axolotl2D.Drawable; -using Axolotl2D; using CefSharp; using CefSharp.OffScreen; -using CefSharp.Structs; using Silk.NET.Input; using Silk.NET.OpenGL; -using StbImageSharp; using System.Numerics; -using System.Reflection; using System.Runtime.InteropServices; // https://github.com/cefsharp/CefSharp/wiki/General-Usage#need-to-knowlimitations diff --git a/Axolotl2D.Cef/CefBrowserManager.cs b/Axolotl2D.Cef/CefBrowserManager.cs index 5d778fd..cd16135 100644 --- a/Axolotl2D.Cef/CefBrowserManager.cs +++ b/Axolotl2D.Cef/CefBrowserManager.cs @@ -1,12 +1,7 @@ using Axolotl2D.Helpers; using CefSharp.OffScreen; -using System; -using System.Collections.Generic; -using System.Linq; using System.Numerics; using System.Reflection; -using System.Text; -using System.Threading.Tasks; namespace Axolotl2D.Cef { diff --git a/Axolotl2D.Cef/Hosting.cs b/Axolotl2D.Cef/Hosting.cs index 84c482f..8947928 100644 --- a/Axolotl2D.Cef/Hosting.cs +++ b/Axolotl2D.Cef/Hosting.cs @@ -1,10 +1,5 @@ using Axolotl2D.Helpers; using Microsoft.Extensions.DependencyInjection; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Axolotl2D.Cef { diff --git a/Axolotl2D.Example/ExampleGame.cs b/Axolotl2D.Example/ExampleGame.cs index 54ec662..4d74de0 100644 --- a/Axolotl2D.Example/ExampleGame.cs +++ b/Axolotl2D.Example/ExampleGame.cs @@ -1,10 +1,7 @@ using Axolotl2D.Audio; using Axolotl2D.Cef; using Axolotl2D.Drawable; -using Axolotl2D; using Microsoft.Extensions.Logging; -using Silk.NET.Input; -using System.Numerics; using System.Reflection; namespace Axolotl2D.Example diff --git a/Axolotl2D.Example/Program.cs b/Axolotl2D.Example/Program.cs index 0798342..997ee86 100644 --- a/Axolotl2D.Example/Program.cs +++ b/Axolotl2D.Example/Program.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.Hosting; -using Axolotl2D; using Microsoft.Extensions.DependencyInjection; using Axolotl2D.Example.Scenes; using Axolotl2D.Cef; diff --git a/Axolotl2D.Example/Scenes/ExampleScene.cs b/Axolotl2D.Example/Scenes/ExampleScene.cs index a06314b..eb00db5 100644 --- a/Axolotl2D.Example/Scenes/ExampleScene.cs +++ b/Axolotl2D.Example/Scenes/ExampleScene.cs @@ -2,12 +2,7 @@ using Axolotl2D.Scenes; using Microsoft.Extensions.Logging; using Silk.NET.Input; -using System; -using System.Collections.Generic; -using System.Linq; using System.Numerics; -using System.Text; -using System.Threading.Tasks; namespace Axolotl2D.Example.Scenes { diff --git a/Axolotl2D.Example/Scenes/ExampleScene2.cs b/Axolotl2D.Example/Scenes/ExampleScene2.cs index eb4180a..449ff53 100644 --- a/Axolotl2D.Example/Scenes/ExampleScene2.cs +++ b/Axolotl2D.Example/Scenes/ExampleScene2.cs @@ -2,12 +2,7 @@ using Axolotl2D.Scenes; using Microsoft.Extensions.Logging; using Silk.NET.Input; -using System; -using System.Collections.Generic; -using System.Linq; using System.Numerics; -using System.Text; -using System.Threading.Tasks; namespace Axolotl2D.Example.Scenes { diff --git a/Axolotl2D/Audio/AudioPlayer.cs b/Axolotl2D/Audio/AudioPlayer.cs index 85116c0..4ae2ea1 100644 --- a/Axolotl2D/Audio/AudioPlayer.cs +++ b/Axolotl2D/Audio/AudioPlayer.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Silk.NET.OpenAL; +using Silk.NET.OpenAL; namespace Axolotl2D.Audio { diff --git a/Axolotl2D/Audio/Song.cs b/Axolotl2D/Audio/Song.cs index daa4829..a4ffd40 100644 --- a/Axolotl2D/Audio/Song.cs +++ b/Axolotl2D/Audio/Song.cs @@ -1,11 +1,6 @@ -using System; -using System.Buffers.Binary; -using System.Collections.Generic; -using System.Linq; +using System.Buffers.Binary; using System.Text; -using System.Threading.Tasks; using Silk.NET.OpenAL; -using Silk.NET.OpenGL; namespace Axolotl2D.Audio { diff --git a/Axolotl2D/Color.cs b/Axolotl2D/Color.cs index 54768cc..bf1bf9d 100644 --- a/Axolotl2D/Color.cs +++ b/Axolotl2D/Color.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Axolotl2D +namespace Axolotl2D { /// /// Represents a color in the game. diff --git a/Axolotl2D/Drawable/BaseDrawable.cs b/Axolotl2D/Drawable/BaseDrawable.cs index 5045cbb..2b64aeb 100644 --- a/Axolotl2D/Drawable/BaseDrawable.cs +++ b/Axolotl2D/Drawable/BaseDrawable.cs @@ -1,11 +1,4 @@ -using Silk.NET.Input; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Numerics; -using System.Text; -using System.Threading.Tasks; +using System.Numerics; namespace Axolotl2D.Drawable { diff --git a/Axolotl2D/Drawable/SimpleQuad.cs b/Axolotl2D/Drawable/SimpleQuad.cs index 27eab3e..4dd2da0 100644 --- a/Axolotl2D/Drawable/SimpleQuad.cs +++ b/Axolotl2D/Drawable/SimpleQuad.cs @@ -1,11 +1,5 @@ -using Axolotl2D; -using Silk.NET.OpenGL; -using System; -using System.Collections.Generic; -using System.Linq; +using Silk.NET.OpenGL; using System.Numerics; -using System.Text; -using System.Threading.Tasks; namespace Axolotl2D.Drawable { diff --git a/Axolotl2D/Drawable/Sprite.cs b/Axolotl2D/Drawable/Sprite.cs index e535b4d..db8ee17 100644 --- a/Axolotl2D/Drawable/Sprite.cs +++ b/Axolotl2D/Drawable/Sprite.cs @@ -1,11 +1,5 @@ using Silk.NET.OpenGL; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using StbImageSharp; -using Silk.NET.Core.Native; using System.Numerics; namespace Axolotl2D.Drawable diff --git a/Axolotl2D/Drawable/SpriteManager.cs b/Axolotl2D/Drawable/SpriteManager.cs index 3ce0d94..f74ed43 100644 --- a/Axolotl2D/Drawable/SpriteManager.cs +++ b/Axolotl2D/Drawable/SpriteManager.cs @@ -1,9 +1,4 @@ using Axolotl2D.Helpers; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Axolotl2D.Drawable { diff --git a/Axolotl2D/Exceptions/EngineUninitializedException.cs b/Axolotl2D/Exceptions/EngineUninitializedException.cs index 8fb2b05..5d9d995 100644 --- a/Axolotl2D/Exceptions/EngineUninitializedException.cs +++ b/Axolotl2D/Exceptions/EngineUninitializedException.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Axolotl2D.Exceptions +namespace Axolotl2D.Exceptions { /// /// Thrown when an action is performed that required the engine to be initialized, but it is not. diff --git a/Axolotl2D/Exceptions/ShaderCompileException.cs b/Axolotl2D/Exceptions/ShaderCompileException.cs index ea6e387..98f8690 100644 --- a/Axolotl2D/Exceptions/ShaderCompileException.cs +++ b/Axolotl2D/Exceptions/ShaderCompileException.cs @@ -1,9 +1,4 @@ using Axolotl2D.Shaders; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Axolotl2D.Exceptions { diff --git a/Axolotl2D/Exceptions/ShaderNotCompiledException.cs b/Axolotl2D/Exceptions/ShaderNotCompiledException.cs index f30ec5a..02cb4b9 100644 --- a/Axolotl2D/Exceptions/ShaderNotCompiledException.cs +++ b/Axolotl2D/Exceptions/ShaderNotCompiledException.cs @@ -1,9 +1,4 @@ using Axolotl2D.Shaders; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Axolotl2D.Exceptions { diff --git a/Axolotl2D/Game.cs b/Axolotl2D/Game.cs index 38d3781..06e9ac9 100644 --- a/Axolotl2D/Game.cs +++ b/Axolotl2D/Game.cs @@ -1,5 +1,4 @@ -using Axolotl2D.Exceptions; -using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Hosting; using Silk.NET.Input; using Silk.NET.Maths; using Silk.NET.OpenGL; diff --git a/Axolotl2D/Helpers/LazyDependencyLoader.cs b/Axolotl2D/Helpers/LazyDependencyLoader.cs index 59e7a25..1d6389b 100644 --- a/Axolotl2D/Helpers/LazyDependencyLoader.cs +++ b/Axolotl2D/Helpers/LazyDependencyLoader.cs @@ -1,9 +1,4 @@ using Microsoft.Extensions.DependencyInjection; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Axolotl2D.Helpers { diff --git a/Axolotl2D/Hosting.cs b/Axolotl2D/Hosting.cs index e2861f3..8b4d220 100644 --- a/Axolotl2D/Hosting.cs +++ b/Axolotl2D/Hosting.cs @@ -3,11 +3,6 @@ using Axolotl2D.Helpers; using Axolotl2D.Scenes; using Microsoft.Extensions.DependencyInjection; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Axolotl2D { diff --git a/Axolotl2D/IGameHost.cs b/Axolotl2D/IGameHost.cs index 8e99867..be8d040 100644 --- a/Axolotl2D/IGameHost.cs +++ b/Axolotl2D/IGameHost.cs @@ -1,9 +1,4 @@ using Microsoft.Extensions.Hosting; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Axolotl2D { diff --git a/Axolotl2D/Scenes/BaseScene.cs b/Axolotl2D/Scenes/BaseScene.cs index fce288d..9f734e2 100644 --- a/Axolotl2D/Scenes/BaseScene.cs +++ b/Axolotl2D/Scenes/BaseScene.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Numerics; -using System.Text; -using System.Threading.Tasks; +using System.Numerics; namespace Axolotl2D.Scenes { diff --git a/Axolotl2D/Scenes/DefaultSceneAttribute.cs b/Axolotl2D/Scenes/DefaultSceneAttribute.cs index ca2b241..5595ae3 100644 --- a/Axolotl2D/Scenes/DefaultSceneAttribute.cs +++ b/Axolotl2D/Scenes/DefaultSceneAttribute.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Axolotl2D.Scenes +namespace Axolotl2D.Scenes { /// /// To be applied to a Scene class to mark it as the default scene. diff --git a/Axolotl2D/Scenes/SceneGameHost.cs b/Axolotl2D/Scenes/SceneGameHost.cs index 46e8042..f1ff270 100644 --- a/Axolotl2D/Scenes/SceneGameHost.cs +++ b/Axolotl2D/Scenes/SceneGameHost.cs @@ -1,11 +1,5 @@ using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; -using System.Text; -using System.Threading.Tasks; namespace Axolotl2D.Scenes { diff --git a/Axolotl2D/Shaders/Shader.cs b/Axolotl2D/Shaders/Shader.cs index 2b79f36..46e3087 100644 --- a/Axolotl2D/Shaders/Shader.cs +++ b/Axolotl2D/Shaders/Shader.cs @@ -1,10 +1,5 @@ using Axolotl2D.Exceptions; using Silk.NET.OpenGL; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Axolotl2D.Shaders { diff --git a/Axolotl2D/SimpleGameHost.cs b/Axolotl2D/SimpleGameHost.cs index 80228b8..85c236d 100644 --- a/Axolotl2D/SimpleGameHost.cs +++ b/Axolotl2D/SimpleGameHost.cs @@ -1,11 +1,4 @@ -using Microsoft.Extensions.Hosting; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Axolotl2D +namespace Axolotl2D { /// /// Represents a service that simply hosts the game.