From 4c853a8f45e274af009d54493a8ff9149216a1a5 Mon Sep 17 00:00:00 2001 From: Clint Rutkas Date: Wed, 18 Nov 2020 11:44:00 -0800 Subject: [PATCH] more tweaks --- src/modules/fancyzones/editor/FancyZonesEditor/App.xaml.cs | 3 --- .../FancyZonesEditor/Models/MainWindowSettingsModel.cs | 5 ----- .../fancyzones/editor/FancyZonesEditor/Utils/RelayCommand.cs | 2 +- .../editor/FancyZonesEditor/Utils/RelayCommand`1.cs | 2 +- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/App.xaml.cs b/src/modules/fancyzones/editor/FancyZonesEditor/App.xaml.cs index efcf1f6be5..6ee98f3b18 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/App.xaml.cs +++ b/src/modules/fancyzones/editor/FancyZonesEditor/App.xaml.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; -using System.IO.Abstractions; using System.Linq; using System.Text; using System.Windows; @@ -42,8 +41,6 @@ namespace FancyZonesEditor private const string CrashReportDynamicAssemblyTag = "dynamic assembly doesn't have location"; private const string CrashReportLocationNullTag = "location is null or empty"; - private readonly IFileSystem _fileSystem = new FileSystem(); - public MainWindowSettingsModel MainWindowSettings { get; } public static FancyZonesEditorIO FancyZonesEditorIO { get; private set; } diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Models/MainWindowSettingsModel.cs b/src/modules/fancyzones/editor/FancyZonesEditor/Models/MainWindowSettingsModel.cs index 85334d286a..7eb01a7e67 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/Models/MainWindowSettingsModel.cs +++ b/src/modules/fancyzones/editor/FancyZonesEditor/Models/MainWindowSettingsModel.cs @@ -40,15 +40,10 @@ namespace FancyZonesEditor public const ushort _blankCustomModelId = 0xFFFA; public const ushort _lastDefinedId = _blankCustomModelId; - private const int MaxNegativeSpacing = -10; - // Non-localizable strings public static readonly string RegistryPath = "SOFTWARE\\SuperFancyZones"; public static readonly string FullRegistryPath = "HKEY_CURRENT_USER\\" + RegistryPath; - private const string LayoutTypeBlankStr = "blank"; - private const string NullUuidStr = "null"; - // hard coded data for all the "Priority Grid" configurations that are unique to "Grid" private static readonly byte[][] _priorityData = new byte[][] { diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Utils/RelayCommand.cs b/src/modules/fancyzones/editor/FancyZonesEditor/Utils/RelayCommand.cs index 8086689b5e..ecb0d0f285 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/Utils/RelayCommand.cs +++ b/src/modules/fancyzones/editor/FancyZonesEditor/Utils/RelayCommand.cs @@ -22,7 +22,7 @@ namespace FancyZonesEditor.Utils { if (execute == null) { - throw new ArgumentNullException("execute"); + throw new ArgumentNullException(nameof(execute)); } _execute = execute; diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/Utils/RelayCommand`1.cs b/src/modules/fancyzones/editor/FancyZonesEditor/Utils/RelayCommand`1.cs index 21c9ed7d17..3575f3546b 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/Utils/RelayCommand`1.cs +++ b/src/modules/fancyzones/editor/FancyZonesEditor/Utils/RelayCommand`1.cs @@ -22,7 +22,7 @@ namespace FancyZonesEditor.Utils { if (execute == null) { - throw new ArgumentNullException("execute"); + throw new ArgumentNullException(nameof(execute)); } _execute = execute;