From d2337bcd3565e0760615d42b66e26398c1a1dbb7 Mon Sep 17 00:00:00 2001 From: Ivirius Date: Wed, 9 Oct 2024 12:05:56 +0300 Subject: [PATCH] Code quality --- Defrag/App.xaml.cs | 1 - Defrag/Helpers/DefragHelper.cs | 1 - Defrag/MainWindow.xaml.cs | 1 - Defrag/Rebound.Defrag.csproj | 3 ++- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Defrag/App.xaml.cs b/Defrag/App.xaml.cs index 12ce5f6..45843b1 100644 --- a/Defrag/App.xaml.cs +++ b/Defrag/App.xaml.cs @@ -1,5 +1,4 @@ using System; -using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.UI.Xaml; diff --git a/Defrag/Helpers/DefragHelper.cs b/Defrag/Helpers/DefragHelper.cs index 7966555..59d8321 100644 --- a/Defrag/Helpers/DefragHelper.cs +++ b/Defrag/Helpers/DefragHelper.cs @@ -32,7 +32,6 @@ public static List GetSystemVolumes() { List volumes = []; - // WMI query to get all volumes, including GUID paths var query = "SELECT * FROM Win32_Volume WHERE DriveLetter IS NULL"; using (ManagementObjectSearcher searcher = new(query)) { diff --git a/Defrag/MainWindow.xaml.cs b/Defrag/MainWindow.xaml.cs index aa816a0..16d57b0 100644 --- a/Defrag/MainWindow.xaml.cs +++ b/Defrag/MainWindow.xaml.cs @@ -7,7 +7,6 @@ using System.Security.Principal; using System.Text; using System.Threading.Tasks; -using HardwareProviders.HDD; using Microsoft.UI.Windowing; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; diff --git a/Defrag/Rebound.Defrag.csproj b/Defrag/Rebound.Defrag.csproj index 230e724..6cce1eb 100644 --- a/Defrag/Rebound.Defrag.csproj +++ b/Defrag/Rebound.Defrag.csproj @@ -52,7 +52,7 @@ - + @@ -61,6 +61,7 @@ +