From 955f99fe1333b7d456399fe4ddb7867c2d956a1f Mon Sep 17 00:00:00 2001 From: Acherons_ Date: Sun, 17 Jan 2021 08:29:53 -0500 Subject: [PATCH] Remove unused 'usings' --- ButtonTypes/Button.cs | 5 ----- ButtonTypes/MulButton.cs | 4 ---- ButtonTypes/NormalButton.cs | 7 +------ ButtonTypes/Text.cs | 4 ---- ButtonTypes/TogglableButton.cs | 4 ---- ButtonTypes/TogglableMulButton.cs | 4 ---- Keybinds.cs | 7 +------ Loader.cs | 3 --- MenuTypes/ListMenu.cs | 6 +----- MenuTypes/Menu.cs | 9 +-------- MenuTypes/NormalMenu.cs | 8 +------- Menus/BuffList.cs | 2 -- Menus/CharacterList.cs | 4 ---- Menus/ChestItemList.cs | 5 +---- Menus/EquipmentList.cs | 6 +----- Menus/ItemList.cs | 6 +----- Menus/Items.cs | 3 --- Menus/KeybindList.cs | 6 +----- Menus/Main.cs | 9 +-------- Menus/Settings.cs | 7 +------ Menus/SpawnList.cs | 6 +----- Menus/StatsMod.cs | 4 ---- Menus/Teleporter.cs | 1 - Menus/ViewStats.cs | 1 - Navigation.cs | 6 +----- Styles.cs | 8 +------- Textures.cs | 5 +---- UmbraMenu.cs | 11 +---------- Utility.cs | 3 --- 29 files changed, 16 insertions(+), 138 deletions(-) diff --git a/ButtonTypes/Button.cs b/ButtonTypes/Button.cs index 85f6dbd..a2d1925 100644 --- a/ButtonTypes/Button.cs +++ b/ButtonTypes/Button.cs @@ -1,9 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine; namespace UmbraMenu { diff --git a/ButtonTypes/MulButton.cs b/ButtonTypes/MulButton.cs index dda75c7..b8b8ccc 100644 --- a/ButtonTypes/MulButton.cs +++ b/ButtonTypes/MulButton.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using UnityEngine; namespace UmbraMenu diff --git a/ButtonTypes/NormalButton.cs b/ButtonTypes/NormalButton.cs index f49bb73..ed104e5 100644 --- a/ButtonTypes/NormalButton.cs +++ b/ButtonTypes/NormalButton.cs @@ -1,9 +1,4 @@ -using JetBrains.Annotations; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System; using UnityEngine; namespace UmbraMenu diff --git a/ButtonTypes/Text.cs b/ButtonTypes/Text.cs index e4d6581..2c39745 100644 --- a/ButtonTypes/Text.cs +++ b/ButtonTypes/Text.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using UnityEngine; namespace UmbraMenu diff --git a/ButtonTypes/TogglableButton.cs b/ButtonTypes/TogglableButton.cs index bcf9da9..0bd40c9 100644 --- a/ButtonTypes/TogglableButton.cs +++ b/ButtonTypes/TogglableButton.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using UnityEngine; namespace UmbraMenu diff --git a/ButtonTypes/TogglableMulButton.cs b/ButtonTypes/TogglableMulButton.cs index 4ffba6d..0ab0268 100644 --- a/ButtonTypes/TogglableMulButton.cs +++ b/ButtonTypes/TogglableMulButton.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using UnityEngine; namespace UmbraMenu diff --git a/Keybinds.cs b/Keybinds.cs index 9018c93..a204a98 100644 --- a/Keybinds.cs +++ b/Keybinds.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 UmbraMenu { diff --git a/Loader.cs b/Loader.cs index 2670b37..088dc1d 100644 --- a/Loader.cs +++ b/Loader.cs @@ -1,9 +1,6 @@ using System; -using System.IO; using System.Linq; using System.Reflection; -using System.Collections.Generic; -using RoR2; using UnityEngine; using Octokit; diff --git a/MenuTypes/ListMenu.cs b/MenuTypes/ListMenu.cs index 7a11b0f..24fa152 100644 --- a/MenuTypes/ListMenu.cs +++ b/MenuTypes/ListMenu.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 UnityEngine; namespace UmbraMenu diff --git a/MenuTypes/Menu.cs b/MenuTypes/Menu.cs index 2677c25..88070f5 100644 --- a/MenuTypes/Menu.cs +++ b/MenuTypes/Menu.cs @@ -1,12 +1,5 @@ -using JetBrains.Annotations; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using RoR2; +using System.Collections.Generic; using UnityEngine; -using System.Reflection; namespace UmbraMenu { diff --git a/MenuTypes/NormalMenu.cs b/MenuTypes/NormalMenu.cs index 16ed360..26919b8 100644 --- a/MenuTypes/NormalMenu.cs +++ b/MenuTypes/NormalMenu.cs @@ -1,10 +1,4 @@ -using RewiredConsts; -using System; -using System.Collections.Generic; -using System.Globalization; -using System.IO; -using System.Runtime.CompilerServices; -using System.Text; +using System.Collections.Generic; using UnityEngine; namespace UmbraMenu diff --git a/Menus/BuffList.cs b/Menus/BuffList.cs index 730300e..1642352 100644 --- a/Menus/BuffList.cs +++ b/Menus/BuffList.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using RoR2; using UnityEngine; diff --git a/Menus/CharacterList.cs b/Menus/CharacterList.cs index 3a29945..1cc8d1f 100644 --- a/Menus/CharacterList.cs +++ b/Menus/CharacterList.cs @@ -1,9 +1,5 @@ using RoR2; -using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using UnityEngine; namespace UmbraMenu.Menus diff --git a/Menus/ChestItemList.cs b/Menus/ChestItemList.cs index f6e8f4c..a8f5757 100644 --- a/Menus/ChestItemList.cs +++ b/Menus/ChestItemList.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using RoR2; using UnityEngine; diff --git a/Menus/EquipmentList.cs b/Menus/EquipmentList.cs index bfd4096..b727a17 100644 --- a/Menus/EquipmentList.cs +++ b/Menus/EquipmentList.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 RoR2; using UnityEngine; diff --git a/Menus/ItemList.cs b/Menus/ItemList.cs index 00610f9..b4b1342 100644 --- a/Menus/ItemList.cs +++ b/Menus/ItemList.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 RoR2; using UnityEngine; diff --git a/Menus/Items.cs b/Menus/Items.cs index 5ba8a9a..ec6b942 100644 --- a/Menus/Items.cs +++ b/Menus/Items.cs @@ -1,9 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UnityEngine.Experimental.Rendering; using RoR2; using UnityEngine; using UnityEngine.Networking; diff --git a/Menus/KeybindList.cs b/Menus/KeybindList.cs index 541ded9..7a48129 100644 --- a/Menus/KeybindList.cs +++ b/Menus/KeybindList.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 UnityEngine; namespace UmbraMenu.Menus diff --git a/Menus/Main.cs b/Menus/Main.cs index bfe1fef..eab7c1f 100644 --- a/Menus/Main.cs +++ b/Menus/Main.cs @@ -1,12 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Collections.Generic; using UnityEngine; -using RoR2; -using RoR2.UI.MainMenu; -using System.IO; namespace UmbraMenu.Menus { diff --git a/Menus/Settings.cs b/Menus/Settings.cs index 6c493c2..4a3ed72 100644 --- a/Menus/Settings.cs +++ b/Menus/Settings.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using RoR2; +using System.Collections.Generic; using UnityEngine; -using System.Text; -using System.Threading.Tasks; namespace UmbraMenu.Menus { diff --git a/Menus/SpawnList.cs b/Menus/SpawnList.cs index a5e8745..2b2118f 100644 --- a/Menus/SpawnList.cs +++ b/Menus/SpawnList.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 UnityEngine; using RoR2; diff --git a/Menus/StatsMod.cs b/Menus/StatsMod.cs index 1488054..4e3e2ea 100644 --- a/Menus/StatsMod.cs +++ b/Menus/StatsMod.cs @@ -1,10 +1,6 @@ using System; using System.Collections.Generic; using UnityEngine; -using RoR2; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace UmbraMenu.Menus { diff --git a/Menus/Teleporter.cs b/Menus/Teleporter.cs index a1eb561..c7b5b30 100644 --- a/Menus/Teleporter.cs +++ b/Menus/Teleporter.cs @@ -1,7 +1,6 @@ using UnityEngine; using RoR2; using System.Collections.Generic; -using System; using System.Linq; diff --git a/Menus/ViewStats.cs b/Menus/ViewStats.cs index e7bf135..b7400d0 100644 --- a/Menus/ViewStats.cs +++ b/Menus/ViewStats.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using RoR2; using UnityEngine; namespace UmbraMenu.Menus diff --git a/Navigation.cs b/Navigation.cs index dbddbbb..c20cd27 100644 --- a/Navigation.cs +++ b/Navigation.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Linq; using UnityEngine; namespace UmbraMenu diff --git a/Styles.cs b/Styles.cs index a9fdbdd..62ab83f 100644 --- a/Styles.cs +++ b/Styles.cs @@ -1,10 +1,4 @@ -using System; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Collections.Generic; -using RoR2; -using UnityEngine; +using UnityEngine; namespace UmbraMenu { diff --git a/Textures.cs b/Textures.cs index b133f58..2dfb8b3 100644 --- a/Textures.cs +++ b/Textures.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; -using UnityEngine; +using UnityEngine; namespace UmbraMenu { diff --git a/UmbraMenu.cs b/UmbraMenu.cs index 62d5243..aaee7cc 100644 --- a/UmbraMenu.cs +++ b/UmbraMenu.cs @@ -1,12 +1,4 @@ -// TODO: -// Update allowed hurtbox list to track new mobs -// charge purple w/ HoldOutZoneController -// remove unused code (including unused 'using's) -// Implement Settings Menu -// Implement enhancements and bug fixes from github issues. -// Add Comments :) - -using System; +using System; using System.Collections.Generic; using UnityEngine; using RoR2; @@ -277,7 +269,6 @@ public void FixedUpdate() #region Misc Functions public void OnSceneLoaded(Scene s1, Scene s2) { - Utility.WriteToLog($"{s1.name} -> {s2.name}"); if (s2 != null) { bool inGame = s2.name != "title" && s2.name != "lobby" && s2.name != "" && s2.name != " "; diff --git a/Utility.cs b/Utility.cs index 41f86cd..4837712 100644 --- a/Utility.cs +++ b/Utility.cs @@ -3,11 +3,8 @@ using UnityEngine; using System.Linq; using RoR2; -using System.Text; -using System.Threading.Tasks; using System.Reflection; using System.IO; -using Octokit; namespace UmbraMenu {