From 7fc332e9120e7b5ceec2ed1e4a643458dc4ab2eb Mon Sep 17 00:00:00 2001 From: Gustave Monce Date: Sat, 12 Oct 2024 13:46:34 +0200 Subject: [PATCH] Cleanup using directives --- WPinternals/App.xaml.cs | 1 - WPinternals/Models/FFU.cs | 1 - WPinternals/Models/NativeMethods.cs | 1 - WPinternals/Models/PhoneInfo/CommonPhoneInfo.cs | 2 -- WPinternals/Models/PhoneInfo/LumiaPhoneInfoAppPhoneInfo.cs | 2 -- WPinternals/Models/UEFI.cs | 1 - WPinternals/Models/UEFIApps/LumiaBootManagerAppModel.cs | 2 -- WPinternals/Models/UEFIApps/LumiaPhoneInfoAppModel.cs | 2 -- WPinternals/ViewModels/LumiaV3FlashRomViewModel.cs | 1 - WPinternals/ViewModels/NokiaPhoneInfoViewModel.cs | 1 - WPinternals/ViewModels/PhoneNotifierViewModel.cs | 1 - WPinternals/ViewModels/SwitchModeViewModel.cs | 1 - WPinternals/Views/StartupWindow.xaml.cs | 1 - WPinternalsSDK/CreationDisposition.cs | 4 +--- WPinternalsSDK/FILETIME.cs | 4 +--- WPinternalsSDK/File.cs | 4 +--- WPinternalsSDK/FileStreamMode.cs | 4 +--- WPinternalsSDK/FileSystemType.cs | 4 +--- WPinternalsSDK/GET_FILEEX_INFO_LEVELS.cs | 4 +--- WPinternalsSDK/MoveMethod.cs | 4 +--- WPinternalsSDK/Properties/AssemblyInfo.cs | 6 +----- WPinternalsSDK/QUOTA_LIMITS.cs | 4 +--- WPinternalsSDK/RegResult.cs | 4 +--- WPinternalsSDK/RegistryHive.cs | 4 +--- WPinternalsSDK/RegistryItem.cs | 4 +--- WPinternalsSDK/RegistryKey.cs | 1 - WPinternalsSDK/RegistryValue.cs | 4 +--- WPinternalsSDK/RegistryValueType.cs | 4 +--- WPinternalsSDK/WIN32_FILE_ATTRIBUTE_DATA.cs | 4 +--- WPinternalsSDK/WIN32_FIND_DATA.cs | 4 +--- 30 files changed, 16 insertions(+), 68 deletions(-) diff --git a/WPinternals/App.xaml.cs b/WPinternals/App.xaml.cs index 125bd0c..d8283bb 100644 --- a/WPinternals/App.xaml.cs +++ b/WPinternals/App.xaml.cs @@ -20,7 +20,6 @@ using System; using System.IO; -using System.Linq; using System.Threading; using System.Windows; diff --git a/WPinternals/Models/FFU.cs b/WPinternals/Models/FFU.cs index a9da55a..f1b59e0 100644 --- a/WPinternals/Models/FFU.cs +++ b/WPinternals/Models/FFU.cs @@ -20,7 +20,6 @@ using System; using System.IO; -using System.Linq; namespace WPinternals { diff --git a/WPinternals/Models/NativeMethods.cs b/WPinternals/Models/NativeMethods.cs index 79f1d6c..83c036b 100644 --- a/WPinternals/Models/NativeMethods.cs +++ b/WPinternals/Models/NativeMethods.cs @@ -20,7 +20,6 @@ using Microsoft.Win32.SafeHandles; using System; -using System.Runtime.ConstrainedExecution; using System.Runtime.InteropServices; using System.Security; diff --git a/WPinternals/Models/PhoneInfo/CommonPhoneInfo.cs b/WPinternals/Models/PhoneInfo/CommonPhoneInfo.cs index aadf44d..d2b85ae 100644 --- a/WPinternals/Models/PhoneInfo/CommonPhoneInfo.cs +++ b/WPinternals/Models/PhoneInfo/CommonPhoneInfo.cs @@ -18,8 +18,6 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -using System; - namespace WPinternals { internal class CommonPhoneInfo diff --git a/WPinternals/Models/PhoneInfo/LumiaPhoneInfoAppPhoneInfo.cs b/WPinternals/Models/PhoneInfo/LumiaPhoneInfoAppPhoneInfo.cs index 7aa285e..1efe750 100644 --- a/WPinternals/Models/PhoneInfo/LumiaPhoneInfoAppPhoneInfo.cs +++ b/WPinternals/Models/PhoneInfo/LumiaPhoneInfoAppPhoneInfo.cs @@ -18,8 +18,6 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -using System; - namespace WPinternals { internal class LumiaPhoneInfoAppPhoneInfo diff --git a/WPinternals/Models/UEFI.cs b/WPinternals/Models/UEFI.cs index 0d17280..25cc6d2 100644 --- a/WPinternals/Models/UEFI.cs +++ b/WPinternals/Models/UEFI.cs @@ -20,7 +20,6 @@ using System; using System.Collections.Generic; -using System.Linq; namespace WPinternals { diff --git a/WPinternals/Models/UEFIApps/LumiaBootManagerAppModel.cs b/WPinternals/Models/UEFIApps/LumiaBootManagerAppModel.cs index 0e1db5c..a831575 100644 --- a/WPinternals/Models/UEFIApps/LumiaBootManagerAppModel.cs +++ b/WPinternals/Models/UEFIApps/LumiaBootManagerAppModel.cs @@ -19,8 +19,6 @@ // DEALINGS IN THE SOFTWARE. using System; -using System.IO; -using System.Linq; namespace WPinternals { diff --git a/WPinternals/Models/UEFIApps/LumiaPhoneInfoAppModel.cs b/WPinternals/Models/UEFIApps/LumiaPhoneInfoAppModel.cs index 3b66f74..430f7ca 100644 --- a/WPinternals/Models/UEFIApps/LumiaPhoneInfoAppModel.cs +++ b/WPinternals/Models/UEFIApps/LumiaPhoneInfoAppModel.cs @@ -20,8 +20,6 @@ using System; using System.Collections.Generic; -using System.IO; -using System.Linq; namespace WPinternals { diff --git a/WPinternals/ViewModels/LumiaV3FlashRomViewModel.cs b/WPinternals/ViewModels/LumiaV3FlashRomViewModel.cs index 922bb03..f7b4f2c 100644 --- a/WPinternals/ViewModels/LumiaV3FlashRomViewModel.cs +++ b/WPinternals/ViewModels/LumiaV3FlashRomViewModel.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; using System.Security.Cryptography; diff --git a/WPinternals/ViewModels/NokiaPhoneInfoViewModel.cs b/WPinternals/ViewModels/NokiaPhoneInfoViewModel.cs index fd176ca..f69010e 100644 --- a/WPinternals/ViewModels/NokiaPhoneInfoViewModel.cs +++ b/WPinternals/ViewModels/NokiaPhoneInfoViewModel.cs @@ -20,7 +20,6 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Threading; namespace WPinternals diff --git a/WPinternals/ViewModels/PhoneNotifierViewModel.cs b/WPinternals/ViewModels/PhoneNotifierViewModel.cs index 7f7f06e..5a25d7f 100644 --- a/WPinternals/ViewModels/PhoneNotifierViewModel.cs +++ b/WPinternals/ViewModels/PhoneNotifierViewModel.cs @@ -21,7 +21,6 @@ using MadWizard.WinUSBNet; using System; using System.Diagnostics.Eventing.Reader; -using System.Linq; using System.Threading; using System.Threading.Tasks; diff --git a/WPinternals/ViewModels/SwitchModeViewModel.cs b/WPinternals/ViewModels/SwitchModeViewModel.cs index 08835c4..0cfd70b 100644 --- a/WPinternals/ViewModels/SwitchModeViewModel.cs +++ b/WPinternals/ViewModels/SwitchModeViewModel.cs @@ -21,7 +21,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Security.Policy; using System.Threading; using System.Threading.Tasks; diff --git a/WPinternals/Views/StartupWindow.xaml.cs b/WPinternals/Views/StartupWindow.xaml.cs index 5a81fb2..1998943 100644 --- a/WPinternals/Views/StartupWindow.xaml.cs +++ b/WPinternals/Views/StartupWindow.xaml.cs @@ -20,7 +20,6 @@ using Microsoft.Win32; using System; -using System.Linq; using System.Windows; namespace WPinternals diff --git a/WPinternalsSDK/CreationDisposition.cs b/WPinternalsSDK/CreationDisposition.cs index 477d60d..ddd5d3a 100644 --- a/WPinternalsSDK/CreationDisposition.cs +++ b/WPinternalsSDK/CreationDisposition.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { public enum CreationDisposition { diff --git a/WPinternalsSDK/FILETIME.cs b/WPinternalsSDK/FILETIME.cs index 6eebd02..e311c95 100644 --- a/WPinternalsSDK/FILETIME.cs +++ b/WPinternalsSDK/FILETIME.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { internal struct FILETIME { diff --git a/WPinternalsSDK/File.cs b/WPinternalsSDK/File.cs index 6c2b314..6e39e1d 100644 --- a/WPinternalsSDK/File.cs +++ b/WPinternalsSDK/File.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { public class File : FileSystemEntry { diff --git a/WPinternalsSDK/FileStreamMode.cs b/WPinternalsSDK/FileStreamMode.cs index 4164fb4..bccc045 100644 --- a/WPinternalsSDK/FileStreamMode.cs +++ b/WPinternalsSDK/FileStreamMode.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { public enum FileStreamMode { diff --git a/WPinternalsSDK/FileSystemType.cs b/WPinternalsSDK/FileSystemType.cs index a95460e..53fbc14 100644 --- a/WPinternalsSDK/FileSystemType.cs +++ b/WPinternalsSDK/FileSystemType.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { public enum FileSystemType { diff --git a/WPinternalsSDK/GET_FILEEX_INFO_LEVELS.cs b/WPinternalsSDK/GET_FILEEX_INFO_LEVELS.cs index f93658b..4559756 100644 --- a/WPinternalsSDK/GET_FILEEX_INFO_LEVELS.cs +++ b/WPinternalsSDK/GET_FILEEX_INFO_LEVELS.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { internal enum GET_FILEEX_INFO_LEVELS { diff --git a/WPinternalsSDK/MoveMethod.cs b/WPinternalsSDK/MoveMethod.cs index ba527d3..a61c66f 100644 --- a/WPinternalsSDK/MoveMethod.cs +++ b/WPinternalsSDK/MoveMethod.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { public enum MoveMethod : uint { diff --git a/WPinternalsSDK/Properties/AssemblyInfo.cs b/WPinternalsSDK/Properties/AssemblyInfo.cs index 5bf2daf..556b83c 100644 --- a/WPinternalsSDK/Properties/AssemblyInfo.cs +++ b/WPinternalsSDK/Properties/AssemblyInfo.cs @@ -1,9 +1,5 @@ -using System; -using System.Diagnostics; -using System.Reflection; -using System.Runtime.CompilerServices; +using System.Reflection; using System.Runtime.InteropServices; -using System.Runtime.Versioning; [assembly: AssemblyVersion("1.0.5795.42493")] [assembly: AssemblyTitle("WPinternals SDK")] diff --git a/WPinternalsSDK/QUOTA_LIMITS.cs b/WPinternalsSDK/QUOTA_LIMITS.cs index b5bb5dd..985c332 100644 --- a/WPinternalsSDK/QUOTA_LIMITS.cs +++ b/WPinternalsSDK/QUOTA_LIMITS.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { internal struct QUOTA_LIMITS { diff --git a/WPinternalsSDK/RegResult.cs b/WPinternalsSDK/RegResult.cs index 06908d2..85d4000 100644 --- a/WPinternalsSDK/RegResult.cs +++ b/WPinternalsSDK/RegResult.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { public enum RegResult { diff --git a/WPinternalsSDK/RegistryHive.cs b/WPinternalsSDK/RegistryHive.cs index 110b0d5..11d8a87 100644 --- a/WPinternalsSDK/RegistryHive.cs +++ b/WPinternalsSDK/RegistryHive.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { public enum RegistryHive : uint { diff --git a/WPinternalsSDK/RegistryItem.cs b/WPinternalsSDK/RegistryItem.cs index 4cb6c3b..c9227c0 100644 --- a/WPinternalsSDK/RegistryItem.cs +++ b/WPinternalsSDK/RegistryItem.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { public class RegistryItem { diff --git a/WPinternalsSDK/RegistryKey.cs b/WPinternalsSDK/RegistryKey.cs index bdab6f6..697f139 100644 --- a/WPinternalsSDK/RegistryKey.cs +++ b/WPinternalsSDK/RegistryKey.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Text; namespace WPinternalsSDK diff --git a/WPinternalsSDK/RegistryValue.cs b/WPinternalsSDK/RegistryValue.cs index cdf244d..d10d3d3 100644 --- a/WPinternalsSDK/RegistryValue.cs +++ b/WPinternalsSDK/RegistryValue.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { public class RegistryValue : RegistryItem { diff --git a/WPinternalsSDK/RegistryValueType.cs b/WPinternalsSDK/RegistryValueType.cs index 3860166..b355369 100644 --- a/WPinternalsSDK/RegistryValueType.cs +++ b/WPinternalsSDK/RegistryValueType.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { public enum RegistryValueType { diff --git a/WPinternalsSDK/WIN32_FILE_ATTRIBUTE_DATA.cs b/WPinternalsSDK/WIN32_FILE_ATTRIBUTE_DATA.cs index dab99a1..e211cc0 100644 --- a/WPinternalsSDK/WIN32_FILE_ATTRIBUTE_DATA.cs +++ b/WPinternalsSDK/WIN32_FILE_ATTRIBUTE_DATA.cs @@ -1,6 +1,4 @@ -using System; - -namespace WPinternalsSDK +namespace WPinternalsSDK { internal struct WIN32_FILE_ATTRIBUTE_DATA { diff --git a/WPinternalsSDK/WIN32_FIND_DATA.cs b/WPinternalsSDK/WIN32_FIND_DATA.cs index c3ef3c6..44696dc 100644 --- a/WPinternalsSDK/WIN32_FIND_DATA.cs +++ b/WPinternalsSDK/WIN32_FIND_DATA.cs @@ -1,6 +1,4 @@ -using System; -using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; +using System.Runtime.InteropServices; namespace WPinternalsSDK {