From 3f229724bcd4551b8e4fca31d0dd4f3ae055002e Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Wed, 29 Jul 2020 12:30:14 -0400 Subject: [PATCH] refactor: remove unused imports --- HudSwap/Configuration.cs | 2 -- HudSwap/HUD.cs | 3 +-- HudSwap/Plugin.cs | 1 - HudSwap/PluginUI.cs | 5 +---- 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/HudSwap/Configuration.cs b/HudSwap/Configuration.cs index 8220319..de4824d 100644 --- a/HudSwap/Configuration.cs +++ b/HudSwap/Configuration.cs @@ -1,8 +1,6 @@ using Dalamud.Configuration; using Dalamud.Plugin; using System; -using System.Collections.Generic; -using System.Text; namespace HudSwap { [Serializable] diff --git a/HudSwap/HUD.cs b/HudSwap/HUD.cs index 5b36928..fa3b545 100644 --- a/HudSwap/HUD.cs +++ b/HudSwap/HUD.cs @@ -4,14 +4,13 @@ using System.Runtime.InteropServices; namespace HudSwap { public class HUD { - private delegate IntPtr GetFilePointerDelegate(byte index); private delegate uint SetHudLayoutDelegate(IntPtr filePtr, uint hudLayout, byte unk0, byte unk1); private GetFilePointerDelegate _getFilePointer; private SetHudLayoutDelegate _setHudLayout; - private DalamudPluginInterface pi; + private readonly DalamudPluginInterface pi; public HUD(DalamudPluginInterface pi) { this.pi = pi; diff --git a/HudSwap/Plugin.cs b/HudSwap/Plugin.cs index feab52e..efdbec1 100644 --- a/HudSwap/Plugin.cs +++ b/HudSwap/Plugin.cs @@ -1,5 +1,4 @@ using Dalamud.Plugin; -using System; namespace HudSwap { public class HudSwapPlugin : IDalamudPlugin { diff --git a/HudSwap/PluginUI.cs b/HudSwap/PluginUI.cs index 820b190..7ab87c8 100644 --- a/HudSwap/PluginUI.cs +++ b/HudSwap/PluginUI.cs @@ -3,9 +3,7 @@ using Dalamud.Game.ClientState.Actors.Types; using Dalamud.Plugin; using ImGuiNET; using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Text; namespace HudSwap { public class PluginUI { @@ -25,6 +23,7 @@ namespace HudSwap { public void ConfigUI(object sender, EventArgs args) { this.SettingsVisible = true; } + public void DrawSettings() { if (!this.SettingsVisible) { return; @@ -108,8 +107,6 @@ namespace HudSwap { this.statuses.SetHudLayout(null); } } - - } public class Statuses {