Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Quality: Sorting and removing unused usings #11010

Merged
merged 1 commit into from
Jan 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/Files.App/DataModels/NavigationControlItems/DriveItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
using Microsoft.UI.Xaml.Media.Imaging;
using System;
using System.Threading.Tasks;
using Windows.Media.Capture;
using Windows.Storage;
using Windows.Storage.Streams;
using static Vanara.PInvoke.Shell32;

namespace Files.App.DataModels.NavigationControlItems
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using Microsoft.UI.Xaml.Media.Imaging;
using System;
using System.IO;
using System.Threading.Tasks;

namespace Files.App.DataModels.NavigationControlItems
{
Expand Down
1 change: 0 additions & 1 deletion src/Files.App/Filesystem/ListedItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Windows.Storage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,16 @@
using Files.App.Filesystem.StorageItems;
using Files.App.Helpers;
using Files.App.Helpers.FileListCache;
using Files.App.Shell;
using Files.Backend.Extensions;
using Files.Backend.Services.Settings;
using Files.Backend.Services.SizeProvider;
using Files.Shared;
using Microsoft.UI.Xaml.Media.Imaging;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Vanara.PInvoke;
using Vanara.Windows.Shell;
using Windows.Storage;
using static Files.Backend.Helpers.NativeFindStorageItemHelper;
using FileAttributes = System.IO.FileAttributes;
Expand Down
1 change: 0 additions & 1 deletion src/Files.App/Filesystem/StorageItems/ShellStorageFile.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Files.App.Shell;
using Files.Shared;
using Files.Shared.Extensions;
using System;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading.Tasks;
Expand Down
1 change: 0 additions & 1 deletion src/Files.App/Helpers/AppThemeResourcesHelper.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Media;
using Windows.UI;

namespace Files.App.Helpers
Expand Down
2 changes: 0 additions & 2 deletions src/Files.App/Helpers/FileOperationsHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Files.App.DataModels;
using Files.App.Filesystem;
using Files.App.Filesystem.Permissions;
using Files.App.Shell;
Expand All @@ -17,7 +16,6 @@
using System.Security.Principal;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using Tulpep.ActiveDirectoryObjectPicker;
using Vanara.PInvoke;
using Vanara.Windows.Shell;
Expand Down
1 change: 0 additions & 1 deletion src/Files.App/Helpers/NativeFileOperationsHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Files.Shared.Extensions;
using Microsoft.Win32.SafeHandles;
using System;
using System.Collections.Generic;
Expand Down
1 change: 0 additions & 1 deletion src/Files.App/Helpers/RecycleBinHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Files.App.DataModels.NavigationControlItems;
using Files.App.Extensions;
using Files.App.Filesystem;
using Files.App.Shell;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using Files.Backend.Services.Settings;
using Files.Shared.EventArguments;
using Microsoft.AppCenter.Analytics;
using Microsoft.UI.Xaml.Media;
using System;

namespace Files.App.ServicesImplementation.Settings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Files.App.Serialization;
using Files.Backend.Services.Settings;
using Files.Shared.Enums;
using Files.Shared.EventArguments;
using Microsoft.AppCenter.Analytics;
using System;
Expand Down
1 change: 0 additions & 1 deletion src/Files.App/Shell/Win32API.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
Expand Down
3 changes: 1 addition & 2 deletions src/Files.App/Shell/Win32Shell.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Files.App.Helpers;
using Files.Shared;
using Files.Shared;
using System;
using System.Collections.Generic;
using System.IO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using Files.App.ViewModels.Previews;
using Microsoft.UI.Xaml.Controls;
using System;

// The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236

Expand Down
1 change: 0 additions & 1 deletion src/Files.App/UserControls/StatusBarControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Files.App.DataModels;
using Files.App.ViewModels;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
Expand Down
1 change: 0 additions & 1 deletion src/Files.App/ViewModels/MainPageViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.DependencyInjection;
using CommunityToolkit.WinUI.Helpers;
using CommunityToolkit.Mvvm.Input;
using Files.App.Extensions;
using Files.App.Filesystem;
Expand Down
3 changes: 0 additions & 3 deletions src/Files.App/ViewModels/SettingsViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Files.App.Extensions;
using Files.App.Helpers;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text.Json;
using System.Windows.Input;
using Windows.Storage;

Expand Down
2 changes: 0 additions & 2 deletions src/Files.App/ViewModels/SettingsViewModels/AboutViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
using Files.App.Extensions;
using Files.Backend.Services.Settings;
using Files.Shared.Extensions;
using Microsoft.UI.Xaml.Controls;
using System;
using System.Threading.Tasks;
using System.Windows.Input;
using Windows.ApplicationModel;
using Windows.ApplicationModel.DataTransfer;
using Windows.Storage;
using Windows.Storage.Pickers;
using Windows.System;

namespace Files.App.ViewModels.SettingsViewModels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Files.App.Filesystem;
using Files.App.Filesystem.StorageItems;
using Files.App.Helpers;
using Files.App.ServicesImplementation.Settings;
using Files.App.Shell;
using Files.Backend.Services.Settings;
using Files.Shared.Extensions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.DependencyInjection;
using CommunityToolkit.Mvvm.Input;
using CommunityToolkit.WinUI.Helpers;
using Files.App.Extensions;
using Files.App.Helpers;
Expand All @@ -12,7 +11,6 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Windows.Input;
using Windows.UI;

namespace Files.App.ViewModels.SettingsViewModels
Expand Down
1 change: 0 additions & 1 deletion src/Files.App/ViewModels/StatusCenterViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
using Microsoft.UI.Xaml.Media;
using System;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Windows.Input;
Expand Down
3 changes: 0 additions & 3 deletions src/Files.App/ViewModels/ToolbarViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Files.App.Filesystem;
using Files.App.Filesystem.StorageItems;
using Files.App.Helpers;
using Files.App.ServicesImplementation;
using Files.App.Shell;
using Files.App.UserControls;
using Files.App.Views;
Expand All @@ -27,10 +26,8 @@
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using System.Windows.Input;
using Vanara.PInvoke;
using Windows.ApplicationModel.DataTransfer;
using Windows.Storage;
using Windows.UI.Text;
Expand Down
2 changes: 0 additions & 2 deletions src/Files.App/Views/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
using Files.App.ViewModels;
using Files.Backend.Extensions;
using Files.Backend.Services.Settings;
using Files.Shared.Enums;
using Files.Shared.EventArguments;
using Microsoft.UI;
using Microsoft.UI.Windowing;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
Expand Down
1 change: 0 additions & 1 deletion src/Files.App/Views/Pages/Properties.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Markup;
using Microsoft.UI.Xaml.Navigation;
using System;
using System.Linq;
Expand Down
1 change: 0 additions & 1 deletion src/Files.App/Views/Pages/PropertiesCustomization.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Files.App.Filesystem;
using Files.App.Helpers;
using Files.App.ViewModels.Properties;
using Microsoft.UI.Xaml;
Expand Down
1 change: 0 additions & 1 deletion src/Files.App/Views/Pages/PropertiesDetails.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Files.App.Dialogs;
using Files.App.Filesystem;
using Files.App.Helpers;
using Files.App.ViewModels.Properties;
using Files.Shared.Enums;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Markup;
using Microsoft.UI.Xaml.Navigation;
using Microsoft.Windows.ApplicationModel.Resources;
using System;
Expand Down
1 change: 0 additions & 1 deletion src/Files.App/Views/Pages/PropertiesShortcut.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Files.App.Filesystem;
using Files.App.ViewModels.Properties;
using System.Threading.Tasks;

Expand Down
5 changes: 0 additions & 5 deletions src/Files.App/Views/SettingsPages/Appearance.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using CommunityToolkit.WinUI.UI;
using Files.App.Dialogs;
using Files.App.Helpers.XamlHelpers;
using Files.App.UserControls.Settings;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;

namespace Files.App.SettingsPages
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using Microsoft.UI.Xaml.Media;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI;

namespace Files.App.Views.SettingsPages.Appearance
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Files.App.Views.SettingsPages.Appearance;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Media;
using System.Collections.ObjectModel;
using Windows.UI;

Expand Down
1 change: 0 additions & 1 deletion src/Files.App/Views/WidgetsPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CommunityToolkit.Mvvm.DependencyInjection;
using Files.App.DataModels.NavigationControlItems;
using Files.App.Dialogs;
using Files.App.Extensions;
using Files.App.Filesystem;
Expand Down
4 changes: 1 addition & 3 deletions src/Files.Backend/Services/IUpdateService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel;
using System.Threading;
using System.Threading.Tasks;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Files.Shared.Enums;
using System.ComponentModel;
using System.ComponentModel;

namespace Files.Backend.Services.Settings
{
Expand Down
1 change: 0 additions & 1 deletion src/Files.Shared/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;

namespace Files.Shared
{
Expand Down
2 changes: 0 additions & 2 deletions tests/Files.InteractionTests/Tests/FolderTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using OpenQA.Selenium;
using OpenQA.Selenium.Interactions;
using System;
using System.Threading;
using static System.Collections.Specialized.BitVector32;

namespace Files.InteractionTests.Tests
{
Expand Down