Skip to content

Commit ee2ae70

Browse files
authored
CodeMaid (#2630)
1 parent 73dba2b commit ee2ae70

File tree

61 files changed

+322
-246
lines changed

Some content is hidden

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

61 files changed

+322
-246
lines changed

Files.Launcher/DragDropForm.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
using System.Collections.Generic;
33
using System.Diagnostics;
44
using System.IO;
5-
using System.Linq;
6-
using System.Text;
7-
using System.Threading.Tasks;
85
using System.Windows.Forms;
96

107
namespace FilesFullTrust
@@ -45,7 +42,8 @@ public DragDropForm(string dropPath, string dropText, System.Threading.Cancellat
4542
this.Size = new System.Drawing.Size(lpRect.Width, lpRect.Height);
4643
this.Location = new System.Drawing.Point(lpRect.Location.X, lpRect.Location.Y);
4744

48-
token.Register(() => {
45+
token.Register(() =>
46+
{
4947
if (this.IsHandleCreated)
5048
{
5149
// If another window is created, close this one
@@ -127,4 +125,4 @@ protected override CreateParams CreateParams
127125
}
128126
}
129127
}
130-
}
128+
}

Files/Constants.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public static class GridViewBrowser
1818
}
1919

2020
public static class GenericFileBrowser
21-
{
21+
{
2222
}
2323
}
2424
}
25-
}
25+
}

Files/Dialogs/AddItemDialog.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@
5555
</StackPanel>
5656
</Grid>
5757
</StackPanel>
58-
</ContentDialog>
58+
</ContentDialog>

Files/Dialogs/ConfirmDeleteDialog.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Files.View_Models;
22
using Microsoft.Toolkit.Uwp.Extensions;
3-
using Windows.Storage;
43
using Windows.UI.Xaml;
54
using Windows.UI.Xaml.Controls;
65

Files/Dialogs/PropertySaveError.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
Grid.Row="1"
2525
Text="There was an issue saving some properties." />
2626
</StackPanel>
27-
</ContentDialog>
27+
</ContentDialog>
Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.IO;
4-
using System.Linq;
5-
using System.Runtime.InteropServices.WindowsRuntime;
6-
using Windows.Foundation;
7-
using Windows.Foundation.Collections;
8-
using Windows.UI.Xaml;
9-
using Windows.UI.Xaml.Controls;
10-
using Windows.UI.Xaml.Controls.Primitives;
11-
using Windows.UI.Xaml.Data;
12-
using Windows.UI.Xaml.Input;
13-
using Windows.UI.Xaml.Media;
14-
using Windows.UI.Xaml.Navigation;
1+
using Windows.UI.Xaml.Controls;
152

163
// The Content Dialog item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
174

@@ -34,4 +21,4 @@ private void ContentDialog_SecondaryButtonClick(ContentDialog sender, ContentDia
3421
{
3522
}
3623
}
37-
}
24+
}

Files/Dialogs/RenameDialog.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Files.Filesystem;
2-
using Files.Interacts;
32
using Windows.System;
43
using Windows.UI.Xaml.Controls;
54

Files/Enums/FileOperationType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ public enum FileOperationType : byte
4848
/// </summary>
4949
Delete = 8
5050
}
51-
}
51+
}

Files/Enums/ReturnResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ public enum ReturnResult : byte
5353
/// </summary>
5454
Cancelled = 8,
5555
}
56-
}
56+
}

Files/Extensions/EnumerableExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ internal static class EnumerableExtensions
1313
internal static IEnumerable<T> CreateEnumerable<T>(this T item) =>
1414
new List<T>() { item };
1515
}
16-
}
16+
}

0 commit comments

Comments
 (0)