From 643bb4519c70c4fa4f49e38939894bba01940b40 Mon Sep 17 00:00:00 2001 From: sinaioutlander <49360850+sinaioutlander@users.noreply.github.com> Date: Fri, 18 Sep 2020 18:38:11 +1000 Subject: [PATCH] Remove and sort usings --- src/CachedObjects/CacheObjectBase.cs | 4 ---- src/CachedObjects/IExpandHeight.cs | 8 +------- src/CachedObjects/Object/CacheDictionary.cs | 7 +------ src/CachedObjects/Object/CacheGameObject.cs | 8 +------- src/CachedObjects/Object/CacheList.cs | 1 - src/CachedObjects/Other/CacheMethod.cs | 4 +--- src/CachedObjects/Other/CacheOther.cs | 5 ----- src/Config/ModConfig.cs | 7 +------ src/CppExplorer.cs | 9 +-------- src/Extensions/ReflectionExtensions.cs | 2 -- src/Extensions/UnityExtensions.cs | 8 +------- src/Helpers/InputHelper.cs | 7 +------ src/Helpers/PageHelper.cs | 7 +------ src/Helpers/ReflectionHelpers.cs | 3 +-- src/Helpers/UnityHelpers.cs | 7 +------ src/Menu/CursorControl.cs | 7 +------ src/Menu/InspectUnderMouse.cs | 7 +------ src/Menu/MainMenu/Pages/Console/REPL.cs | 5 ----- src/Menu/MainMenu/Pages/Console/REPLHelper.cs | 5 +---- src/Menu/MainMenu/Pages/ConsolePage.cs | 11 ++++------- src/Menu/MainMenu/Pages/ScenePage.cs | 1 - src/Menu/MainMenu/Pages/SearchPage.cs | 3 +-- src/Menu/MainMenu/Pages/WindowPage.cs | 7 +------ src/Menu/ResizeDrag.cs | 6 +----- src/Menu/UIHelpers.cs | 6 ------ src/Menu/UIStyles.cs | 8 +------- src/Menu/Windows/GameObjectWindow.cs | 3 --- src/Menu/Windows/ReflectionWindow.cs | 2 -- src/Menu/Windows/TabViewWindow.cs | 8 +------- src/Menu/Windows/UIWindow.cs | 7 ------- src/Menu/Windows/WindowManager.cs | 10 +--------- src/Tests/TestClass.cs | 8 +------- src/UnstripFixes/GUIUnstrip.cs | 12 +++--------- src/UnstripFixes/LayoutUtilityUnstrip.cs | 7 +------ src/UnstripFixes/ScrollViewStateUnstrip.cs | 5 ----- src/UnstripFixes/SliderHandlerUnstrip.cs | 8 ++------ src/UnstripFixes/UnstripExtensions.cs | 7 +------ 37 files changed, 32 insertions(+), 198 deletions(-) diff --git a/src/CachedObjects/CacheObjectBase.cs b/src/CachedObjects/CacheObjectBase.cs index 26d2fb6..51901c4 100644 --- a/src/CachedObjects/CacheObjectBase.cs +++ b/src/CachedObjects/CacheObjectBase.cs @@ -1,11 +1,7 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Reflection; -using System.Text; -using System.Threading.Tasks; using MelonLoader; -using UnhollowerBaseLib; using UnityEngine; namespace Explorer diff --git a/src/CachedObjects/IExpandHeight.cs b/src/CachedObjects/IExpandHeight.cs index 4a3fb68..f0cf45a 100644 --- a/src/CachedObjects/IExpandHeight.cs +++ b/src/CachedObjects/IExpandHeight.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Explorer +namespace Explorer { interface IExpandHeight { diff --git a/src/CachedObjects/Object/CacheDictionary.cs b/src/CachedObjects/Object/CacheDictionary.cs index a259220..c31519b 100644 --- a/src/CachedObjects/Object/CacheDictionary.cs +++ b/src/CachedObjects/Object/CacheDictionary.cs @@ -1,13 +1,8 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using MelonLoader; -using UnityEngine; -using System.Reflection; using UnhollowerBaseLib; +using UnityEngine; namespace Explorer { diff --git a/src/CachedObjects/Object/CacheGameObject.cs b/src/CachedObjects/Object/CacheGameObject.cs index a9cc9d9..baba7e5 100644 --- a/src/CachedObjects/Object/CacheGameObject.cs +++ b/src/CachedObjects/Object/CacheGameObject.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using MelonLoader; -using UnityEngine; +using UnityEngine; namespace Explorer { diff --git a/src/CachedObjects/Object/CacheList.cs b/src/CachedObjects/Object/CacheList.cs index d1a94b3..b17683c 100644 --- a/src/CachedObjects/Object/CacheList.cs +++ b/src/CachedObjects/Object/CacheList.cs @@ -1,7 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Linq; using System.Reflection; using MelonLoader; using UnityEngine; diff --git a/src/CachedObjects/Other/CacheMethod.cs b/src/CachedObjects/Other/CacheMethod.cs index 2d53398..b1c2086 100644 --- a/src/CachedObjects/Other/CacheMethod.cs +++ b/src/CachedObjects/Other/CacheMethod.cs @@ -1,11 +1,9 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Reflection; -using UnityEngine; using MelonLoader; +using UnityEngine; namespace Explorer { diff --git a/src/CachedObjects/Other/CacheOther.cs b/src/CachedObjects/Other/CacheOther.cs index 55cc58d..284bb0a 100644 --- a/src/CachedObjects/Other/CacheOther.cs +++ b/src/CachedObjects/Other/CacheOther.cs @@ -1,9 +1,4 @@ using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Reflection; using UnityEngine; diff --git a/src/Config/ModConfig.cs b/src/Config/ModConfig.cs index c28e58a..3ac29b7 100644 --- a/src/Config/ModConfig.cs +++ b/src/Config/ModConfig.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.IO; using System.Xml.Serialization; using UnityEngine; diff --git a/src/CppExplorer.cs b/src/CppExplorer.cs index c70ec95..d5cac1f 100644 --- a/src/CppExplorer.cs +++ b/src/CppExplorer.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using Harmony; -using MelonLoader; -using UnhollowerBaseLib; +using MelonLoader; using UnityEngine; namespace Explorer diff --git a/src/Extensions/ReflectionExtensions.cs b/src/Extensions/ReflectionExtensions.cs index a45f724..9eb43e5 100644 --- a/src/Extensions/ReflectionExtensions.cs +++ b/src/Extensions/ReflectionExtensions.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Reflection; namespace Explorer diff --git a/src/Extensions/UnityExtensions.cs b/src/Extensions/UnityExtensions.cs index ab97994..c1cc29c 100644 --- a/src/Extensions/UnityExtensions.cs +++ b/src/Extensions/UnityExtensions.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnhollowerBaseLib; -using UnityEngine; +using UnityEngine; namespace Explorer { diff --git a/src/Helpers/InputHelper.cs b/src/Helpers/InputHelper.cs index ca0ebef..e1e1691 100644 --- a/src/Helpers/InputHelper.cs +++ b/src/Helpers/InputHelper.cs @@ -1,12 +1,7 @@ using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using System.Reflection; -using UnityEngine; using MelonLoader; +using UnityEngine; namespace Explorer { diff --git a/src/Helpers/PageHelper.cs b/src/Helpers/PageHelper.cs index 1f22de2..2972e3d 100644 --- a/src/Helpers/PageHelper.cs +++ b/src/Helpers/PageHelper.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; +using UnityEngine; namespace Explorer { diff --git a/src/Helpers/ReflectionHelpers.cs b/src/Helpers/ReflectionHelpers.cs index a236e7c..1b9d122 100644 --- a/src/Helpers/ReflectionHelpers.cs +++ b/src/Helpers/ReflectionHelpers.cs @@ -1,9 +1,8 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Linq; -using System.Reflection; using System.IO; +using System.Reflection; using MelonLoader; using UnhollowerBaseLib; using UnhollowerRuntimeLib; diff --git a/src/Helpers/UnityHelpers.cs b/src/Helpers/UnityHelpers.cs index 727dea7..b9a42ab 100644 --- a/src/Helpers/UnityHelpers.cs +++ b/src/Helpers/UnityHelpers.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; +using UnityEngine; namespace Explorer { diff --git a/src/Menu/CursorControl.cs b/src/Menu/CursorControl.cs index 9f377bd..4a663ce 100644 --- a/src/Menu/CursorControl.cs +++ b/src/Menu/CursorControl.cs @@ -1,12 +1,7 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; using Harmony; using MelonLoader; -using System.Reflection; +using UnityEngine; namespace Explorer { diff --git a/src/Menu/InspectUnderMouse.cs b/src/Menu/InspectUnderMouse.cs index 5adc6cd..dcf22cb 100644 --- a/src/Menu/InspectUnderMouse.cs +++ b/src/Menu/InspectUnderMouse.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; +using UnityEngine; namespace Explorer { diff --git a/src/Menu/MainMenu/Pages/Console/REPL.cs b/src/Menu/MainMenu/Pages/Console/REPL.cs index 31ff80d..6fc97ce 100644 --- a/src/Menu/MainMenu/Pages/Console/REPL.cs +++ b/src/Menu/MainMenu/Pages/Console/REPL.cs @@ -1,9 +1,4 @@ using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Text; using Mono.CSharp; using UnityEngine; using Attribute = System.Attribute; diff --git a/src/Menu/MainMenu/Pages/Console/REPLHelper.cs b/src/Menu/MainMenu/Pages/Console/REPLHelper.cs index e31ff73..b505840 100644 --- a/src/Menu/MainMenu/Pages/Console/REPLHelper.cs +++ b/src/Menu/MainMenu/Pages/Console/REPLHelper.cs @@ -1,8 +1,5 @@ -using System.Collections; -//using Il2CppSystem; -using MelonLoader; +using System; using UnityEngine; -using System; using Object = UnityEngine.Object; namespace Explorer diff --git a/src/Menu/MainMenu/Pages/ConsolePage.cs b/src/Menu/MainMenu/Pages/ConsolePage.cs index 4a5dd14..4a0ab32 100644 --- a/src/Menu/MainMenu/Pages/ConsolePage.cs +++ b/src/Menu/MainMenu/Pages/ConsolePage.cs @@ -1,14 +1,11 @@ using System; -using System.Collections; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; -using System.Reflection; -using Mono.CSharp; using System.IO; +using System.Reflection; +using System.Text; using MelonLoader; +using Mono.CSharp; +using UnityEngine; namespace Explorer { diff --git a/src/Menu/MainMenu/Pages/ScenePage.cs b/src/Menu/MainMenu/Pages/ScenePage.cs index bcdd7c3..3817cca 100644 --- a/src/Menu/MainMenu/Pages/ScenePage.cs +++ b/src/Menu/MainMenu/Pages/ScenePage.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using MelonLoader; using UnityEngine; using UnityEngine.SceneManagement; diff --git a/src/Menu/MainMenu/Pages/SearchPage.cs b/src/Menu/MainMenu/Pages/SearchPage.cs index 15d03ef..7d864c7 100644 --- a/src/Menu/MainMenu/Pages/SearchPage.cs +++ b/src/Menu/MainMenu/Pages/SearchPage.cs @@ -2,10 +2,9 @@ using System.Collections; using System.Collections.Generic; using System.Linq; -using System.Text; -using UnityEngine; using System.Reflection; using MelonLoader; +using UnityEngine; namespace Explorer { diff --git a/src/Menu/MainMenu/Pages/WindowPage.cs b/src/Menu/MainMenu/Pages/WindowPage.cs index 5f39be5..5a3a344 100644 --- a/src/Menu/MainMenu/Pages/WindowPage.cs +++ b/src/Menu/MainMenu/Pages/WindowPage.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; +using UnityEngine; namespace Explorer { diff --git a/src/Menu/ResizeDrag.cs b/src/Menu/ResizeDrag.cs index 77e9ad4..fa78b60 100644 --- a/src/Menu/ResizeDrag.cs +++ b/src/Menu/ResizeDrag.cs @@ -1,11 +1,7 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; using MelonLoader; using UnhollowerBaseLib; +using UnityEngine; namespace Explorer { diff --git a/src/Menu/UIHelpers.cs b/src/Menu/UIHelpers.cs index d5fcca9..0797cf8 100644 --- a/src/Menu/UIHelpers.cs +++ b/src/Menu/UIHelpers.cs @@ -1,10 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Reflection; -using UnhollowerRuntimeLib; using UnityEngine; using Object = UnityEngine.Object; diff --git a/src/Menu/UIStyles.cs b/src/Menu/UIStyles.cs index f45278f..2551539 100644 --- a/src/Menu/UIStyles.cs +++ b/src/Menu/UIStyles.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Text; -using UnityEngine; +using UnityEngine; using Object = UnityEngine.Object; namespace Explorer diff --git a/src/Menu/Windows/GameObjectWindow.cs b/src/Menu/Windows/GameObjectWindow.cs index 26b4023..5370dc0 100644 --- a/src/Menu/Windows/GameObjectWindow.cs +++ b/src/Menu/Windows/GameObjectWindow.cs @@ -1,11 +1,8 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; using MelonLoader; using UnhollowerRuntimeLib; using UnityEngine; -using UnityEngine.SceneManagement; namespace Explorer { diff --git a/src/Menu/Windows/ReflectionWindow.cs b/src/Menu/Windows/ReflectionWindow.cs index 6288a48..5fcff7b 100644 --- a/src/Menu/Windows/ReflectionWindow.cs +++ b/src/Menu/Windows/ReflectionWindow.cs @@ -1,6 +1,4 @@ using System; -using System.CodeDom; -using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/src/Menu/Windows/TabViewWindow.cs b/src/Menu/Windows/TabViewWindow.cs index 3213172..0b349fb 100644 --- a/src/Menu/Windows/TabViewWindow.cs +++ b/src/Menu/Windows/TabViewWindow.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using MelonLoader; -using UnityEngine; +using UnityEngine; namespace Explorer { diff --git a/src/Menu/Windows/UIWindow.cs b/src/Menu/Windows/UIWindow.cs index 1e0ae55..475bab0 100644 --- a/src/Menu/Windows/UIWindow.cs +++ b/src/Menu/Windows/UIWindow.cs @@ -1,11 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Harmony; -using MelonLoader; -using UnhollowerBaseLib; -using UnhollowerRuntimeLib; using UnityEngine; namespace Explorer diff --git a/src/Menu/Windows/WindowManager.cs b/src/Menu/Windows/WindowManager.cs index 799d116..465b4f0 100644 --- a/src/Menu/Windows/WindowManager.cs +++ b/src/Menu/Windows/WindowManager.cs @@ -1,13 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Harmony; -using MelonLoader; -using UnhollowerBaseLib; -using UnhollowerRuntimeLib; +using System.Collections.Generic; using UnityEngine; -using UnityEngine.Events; namespace Explorer { diff --git a/src/Tests/TestClass.cs b/src/Tests/TestClass.cs index 77f3153..21ff3e8 100644 --- a/src/Tests/TestClass.cs +++ b/src/Tests/TestClass.cs @@ -1,11 +1,5 @@ -using System; -using System.Collections; +using System.Collections; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using MelonLoader; -using Mono.CSharp.Linq; using UnityEngine; namespace Explorer.Tests diff --git a/src/UnstripFixes/GUIUnstrip.cs b/src/UnstripFixes/GUIUnstrip.cs index 7fd71bc..82703ca 100644 --- a/src/UnstripFixes/GUIUnstrip.cs +++ b/src/UnstripFixes/GUIUnstrip.cs @@ -1,15 +1,9 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; -using MelonLoader; -using UnhollowerBaseLib; -using UnhollowerRuntimeLib; using System.Reflection; +using MelonLoader; +using UnhollowerRuntimeLib; +using UnityEngine; using UnityEngineInternal; -using Harmony; namespace Explorer { diff --git a/src/UnstripFixes/LayoutUtilityUnstrip.cs b/src/UnstripFixes/LayoutUtilityUnstrip.cs index 13ade38..e75e3ad 100644 --- a/src/UnstripFixes/LayoutUtilityUnstrip.cs +++ b/src/UnstripFixes/LayoutUtilityUnstrip.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; +using UnityEngine; namespace Explorer { diff --git a/src/UnstripFixes/ScrollViewStateUnstrip.cs b/src/UnstripFixes/ScrollViewStateUnstrip.cs index 77f997b..c7d27f0 100644 --- a/src/UnstripFixes/ScrollViewStateUnstrip.cs +++ b/src/UnstripFixes/ScrollViewStateUnstrip.cs @@ -1,10 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Harmony; -using MelonLoader; using UnityEngine; namespace Explorer diff --git a/src/UnstripFixes/SliderHandlerUnstrip.cs b/src/UnstripFixes/SliderHandlerUnstrip.cs index 4ec8533..e61d0e0 100644 --- a/src/UnstripFixes/SliderHandlerUnstrip.cs +++ b/src/UnstripFixes/SliderHandlerUnstrip.cs @@ -1,14 +1,10 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; using UnhollowerRuntimeLib; +using UnityEngine; namespace Explorer { - public struct SliderHandlerUnstrip + public struct SliderHandlerUnstrip { private readonly Rect position; private readonly float currentValue; diff --git a/src/UnstripFixes/UnstripExtensions.cs b/src/UnstripFixes/UnstripExtensions.cs index 818b0e9..7a0e174 100644 --- a/src/UnstripFixes/UnstripExtensions.cs +++ b/src/UnstripFixes/UnstripExtensions.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; +using UnityEngine; namespace Explorer {