Skip to content

Commit 2fabe0f

Browse files
authored
Code Quality: Cleaned up Files.Backend (#12631)
1 parent 4ccb172 commit 2fabe0f

File tree

101 files changed

+849
-620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+849
-620
lines changed

src/Files.App/Actions/FileSystem/CreateFolderAction.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Files.App.Contexts;
77
using Files.App.Extensions;
88
using Files.App.Helpers;
9-
using Files.Backend.Enums;
109
using System.ComponentModel;
1110
using System.Threading.Tasks;
1211

src/Files.App/App.xaml.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
using Files.App.ViewModels;
2121
using Files.App.ViewModels.Settings;
2222
using Files.App.Views;
23-
using Files.Backend.Enums;
24-
using Files.Backend.Services;
25-
using Files.Backend.Services.Settings;
2623
using Files.Backend.Services.SizeProvider;
2724
using Files.Sdk.Storage;
2825
using Files.Shared;

src/Files.App/Data/Items/DriveItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License. See the LICENSE.
33

44
using ByteSizeLib;
5-
using CommunityToolkit.WinUI;
65
using Files.App.Storage.WindowsStorage;
76
using Files.Sdk.Storage;
87
using Files.Sdk.Storage.Enums;
@@ -11,6 +10,7 @@
1110
using Microsoft.UI.Xaml.Media.Imaging;
1211
using Windows.Storage;
1312
using Windows.Storage.Streams;
13+
using ByteSize = ByteSizeLib.ByteSize;
1414

1515
namespace Files.App.Data.Items
1616
{

src/Files.App/Data/Items/NavigationViewItemButtonStyleItem.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) 2023 Files Community
22
// Licensed under the MIT License. See the LICENSE.
33

4-
using Files.Backend.Enums;
54
using Microsoft.UI.Xaml;
65

76
namespace Files.App.Data.Items

src/Files.App/Data/Models/BitmapImageModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) 2023 Files Community
22
// Licensed under the MIT License. See the LICENSE.
33

4-
using Files.Backend.Models;
54
using Microsoft.UI.Xaml.Media.Imaging;
65

76
namespace Files.App.Data.Models

src/Files.App/Data/Models/DrivesViewModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) 2023 Files Community
22
// Licensed under the MIT License. See the LICENSE.
33

4-
using Files.Backend.Models;
5-
using Files.Backend.Services;
64
using Files.Backend.Services.SizeProvider;
75
using Files.Sdk.Storage.LocatableStorage;
86
using Microsoft.Extensions.Logging;

src/Files.App/Dialogs/CreateArchiveDialog.xaml.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
// Copyright (c) 2023 Files Community
22
// Licensed under the MIT License. See the LICENSE.
33

4-
using CommunityToolkit.Mvvm.ComponentModel;
5-
using Files.App.Extensions;
6-
using Files.App.Filesystem;
7-
using Files.App.Filesystem.Archive;
8-
using Files.Backend.Models;
94
using Microsoft.UI.Xaml;
105
using Microsoft.UI.Xaml.Controls;
11-
using System;
12-
using System.Collections.Generic;
136
using System.Collections.Immutable;
14-
using System.ComponentModel;
15-
using System.Linq;
16-
using System.Threading.Tasks;
177
using Windows.Foundation.Metadata;
188

199
namespace Files.App.Dialogs

src/Files.App/Dialogs/CredentialDialog.xaml.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
// Copyright (c) 2023 Files Community
22
// Licensed under the MIT License. See the LICENSE.
33

4-
using Files.Backend.SecureStore;
5-
using Files.Backend.ViewModels.Dialogs;
6-
using Files.Shared.Enums;
74
using Microsoft.UI.Xaml.Controls;
8-
using System;
95
using System.Text;
10-
using System.Threading.Tasks;
11-
12-
// The Content Dialog item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
136

147
namespace Files.App.Dialogs
158
{

src/Files.App/Dialogs/DecompressArchiveDialog.xaml.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
// Licensed under the MIT License. See the LICENSE.
33

44
using Files.App.ViewModels.Dialogs;
5-
using Files.Backend.SecureStore;
65
using Microsoft.UI.Xaml.Controls;
76
using System.Text;
87

9-
// The Content Dialog item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
10-
118
namespace Files.App.Dialogs
129
{
1310
public sealed partial class DecompressArchiveDialog : ContentDialog

src/Files.App/Extensions/StringExtensions.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
// Licensed under the MIT License. See the LICENSE.
33

44
using ByteSizeLib;
5-
using Files.Shared.Extensions;
65
using Microsoft.Windows.ApplicationModel.Resources;
7-
using System;
86
using System.Collections.Concurrent;
9-
using System.Collections.Generic;
107
using System.IO;
8+
using ByteSize = ByteSizeLib.ByteSize;
119

1210
namespace Files.App.Extensions
1311
{

0 commit comments

Comments
 (0)