From ad0199f24b9d97e7fd0a35c8bf7c3e396239fa4b Mon Sep 17 00:00:00 2001 From: radj307 Date: Sun, 12 Nov 2023 17:57:53 -0500 Subject: [PATCH] add commandline option "--reset-config" --- VolumeControl.Log/AsyncLogWriter.cs | 1 - VolumeControl.Log/DebugUtils.cs | 32 ----------------------------- VolumeControl/Mixer.xaml | 1 - VolumeControl/Program.cs | 6 +++++- 4 files changed, 5 insertions(+), 35 deletions(-) delete mode 100644 VolumeControl.Log/DebugUtils.cs diff --git a/VolumeControl.Log/AsyncLogWriter.cs b/VolumeControl.Log/AsyncLogWriter.cs index c08560f5a..60fbe8eb1 100644 --- a/VolumeControl.Log/AsyncLogWriter.cs +++ b/VolumeControl.Log/AsyncLogWriter.cs @@ -1,5 +1,4 @@ using System.Collections; -using System.Collections.Concurrent; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Text; diff --git a/VolumeControl.Log/DebugUtils.cs b/VolumeControl.Log/DebugUtils.cs deleted file mode 100644 index 94ae6f8f8..000000000 --- a/VolumeControl.Log/DebugUtils.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Runtime.CompilerServices; - -namespace VolumeControl.Log -{ - /// - /// Utility helper functions for writing log messages that are more helpful for debugging. - /// - public static class DebugUtils - { - /// - /// Gets the filename that this function was called from. - /// - /// Do not provide a value for this, or the function will not work correctly! - /// The filename of the code file where this function was called. - public static string GetCurrentFileName([CallerFilePath] string _filePath = "") - => _filePath; - /// - /// Gets the line number in the source file that this function was called from. - /// - /// Do not provide a value for this, or the function will not work correctly! - /// The line number in the source file that this function was called from, or -1 if an error occurred. - public static int GetCurrentLineNumber([CallerLineNumber] int _line = -1) - => _line; - /// - /// Gets the name of the member or property that this function was called from. - /// - /// Do not provide a value for this, or the function will not work correctly! - /// The name of the member or property that this function was called from. - public static string GetCurrentMemberName([CallerMemberName] string _memberName = "") - => _memberName; - } -} diff --git a/VolumeControl/Mixer.xaml b/VolumeControl/Mixer.xaml index bdd1ce3d2..91f7c2598 100644 --- a/VolumeControl/Mixer.xaml +++ b/VolumeControl/Mixer.xaml @@ -170,7 +170,6 @@ DefaultText='Specifies the duration of the fade-out animation in milliseconds.'}" /> -