From 4141c10e86bdced7ea3791fc6b0c72038a67aa95 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Wed, 21 Nov 2018 08:30:45 -0800 Subject: [PATCH] Remove dead code --- MatterControlLib/ApplicationView/ApplicationController.cs | 5 ----- MatterControlLib/PartPreviewWindow/MainViewWidget.cs | 5 ++--- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/MatterControlLib/ApplicationView/ApplicationController.cs b/MatterControlLib/ApplicationView/ApplicationController.cs index cdf06e3e3..8b4726e15 100644 --- a/MatterControlLib/ApplicationView/ApplicationController.cs +++ b/MatterControlLib/ApplicationView/ApplicationController.cs @@ -361,9 +361,6 @@ namespace MatterHackers.MatterControl public event EventHandler OpenPrintersChanged; - public static Action SignInAction; - public static Action SignOutAction; - public static Action WebRequestFailed; public static Action WebRequestSucceeded; @@ -1745,8 +1742,6 @@ namespace MatterHackers.MatterControl ProfileManager.Instance.EnsurePrintersImported(); } - private EventHandler unregisterEvent; - public Stream LoadHttpAsset(string url) { string fingerPrint = ToSHA1(url); diff --git a/MatterControlLib/PartPreviewWindow/MainViewWidget.cs b/MatterControlLib/PartPreviewWindow/MainViewWidget.cs index 0e70a014b..7b438bcfd 100644 --- a/MatterControlLib/PartPreviewWindow/MainViewWidget.cs +++ b/MatterControlLib/PartPreviewWindow/MainViewWidget.cs @@ -185,7 +185,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow { this.CreatePartTab().ConfigureAwait(false); } - + string tabKey = ApplicationController.Instance.MainTabKey; if (string.IsNullOrEmpty(tabKey)) @@ -278,7 +278,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow { SetLinkButtonsVisibility(s, new StringEventArgs("Unknown")); }, ref unregisterEvents); - + ApplicationController.Instance.MainView = this; } @@ -635,7 +635,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow } #endif - private void Printer_SettingChanged(object s, EventArgs e) { if (s is PrinterSettings printerSettings