From aa217adad54e0bd11b81c9b66ec0bb2568ba04e5 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 20 Feb 2021 00:18:46 +0000 Subject: [PATCH] Remove dead code --- MCLauncher/App.xaml.cs | 8 +------- MCLauncher/MainWindow.xaml.cs | 6 ------ MCLauncher/Preferences.cs | 8 +------- MCLauncher/Properties/AssemblyInfo.cs | 2 -- MCLauncher/VersionList.cs | 2 -- MCLauncher/WUTokenHelper.cs | 4 ---- 6 files changed, 2 insertions(+), 28 deletions(-) diff --git a/MCLauncher/App.xaml.cs b/MCLauncher/App.xaml.cs index adcf35f..9bb81bf 100644 --- a/MCLauncher/App.xaml.cs +++ b/MCLauncher/App.xaml.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Diagnostics; -using System.Linq; -using System.Threading.Tasks; +using System.Diagnostics; using System.Windows; namespace MCLauncher { diff --git a/MCLauncher/MainWindow.xaml.cs b/MCLauncher/MainWindow.xaml.cs index d276fbe..8221b6f 100644 --- a/MCLauncher/MainWindow.xaml.cs +++ b/MCLauncher/MainWindow.xaml.cs @@ -1,10 +1,8 @@ using Newtonsoft.Json; using System; -using System.Collections.Generic; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; -using Microsoft.Win32; namespace MCLauncher { using System.ComponentModel; @@ -375,13 +373,9 @@ public interface ICommonVersionCommands { } - public class Versions : List { - } - public class Version : NotifyPropertyChangedBase { public static readonly string UNKNOWN_UUID = "UNKNOWN"; - public Version() { } public Version(string uuid, string name, bool isBeta, ICommonVersionCommands commands) { this.UUID = uuid; this.Name = name; diff --git a/MCLauncher/Preferences.cs b/MCLauncher/Preferences.cs index 57cc674..370269a 100644 --- a/MCLauncher/Preferences.cs +++ b/MCLauncher/Preferences.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace MCLauncher { +namespace MCLauncher { public class Preferences { public bool ShowBetas { get; set; } = true; diff --git a/MCLauncher/Properties/AssemblyInfo.cs b/MCLauncher/Properties/AssemblyInfo.cs index 0e2ad8d..44f274a 100644 --- a/MCLauncher/Properties/AssemblyInfo.cs +++ b/MCLauncher/Properties/AssemblyInfo.cs @@ -1,6 +1,4 @@ using System.Reflection; -using System.Resources; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; diff --git a/MCLauncher/VersionList.cs b/MCLauncher/VersionList.cs index 5dbb2e7..89d86d2 100644 --- a/MCLauncher/VersionList.cs +++ b/MCLauncher/VersionList.cs @@ -5,9 +5,7 @@ using System.IO; using System.Linq; using System.Net.Http; -using System.Text; using System.Threading.Tasks; -using System.Windows.Threading; namespace MCLauncher { class VersionList : ObservableCollection { diff --git a/MCLauncher/WUTokenHelper.cs b/MCLauncher/WUTokenHelper.cs index e1e3f1f..d017f57 100644 --- a/MCLauncher/WUTokenHelper.cs +++ b/MCLauncher/WUTokenHelper.cs @@ -1,9 +1,5 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.InteropServices; -using System.Text; -using System.Threading.Tasks; namespace MCLauncher { class WUTokenHelper {