Skip to content

Commit d7b1c72

Browse files
committed
Remove unused using directives from middleware classes
Cleaned up CompressMiddleware, DriverMiddleware, HashMiddleware, and PatchMiddleware by removing unnecessary using statements to improve code clarity and maintainability.
1 parent a9ce43e commit d7b1c72

File tree

4 files changed

+3
-25
lines changed

4 files changed

+3
-25
lines changed

src/c#/GeneralUpdate.Core/Pipeline/CompressMiddleware.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
using System;
2-
using System.Diagnostics;
3-
using System.IO;
4-
using System.Text;
1+
using System.Text;
52
using System.Threading.Tasks;
63
using GeneralUpdate.Common.Compress;
7-
using GeneralUpdate.Common.Internal;
8-
using GeneralUpdate.Common.Internal.Event;
94
using GeneralUpdate.Common.Internal.Pipeline;
105

116
namespace GeneralUpdate.Core.Pipeline;

src/c#/GeneralUpdate.Core/Pipeline/DriverMiddleware.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Diagnostics;
4-
using System.IO;
5-
using System.Linq;
6-
using System.Runtime.InteropServices;
1+
using System.Collections.Generic;
72
using System.Threading.Tasks;
8-
using GeneralUpdate.Common;
9-
using GeneralUpdate.Common.Internal;
10-
using GeneralUpdate.Common.Internal.Event;
113
using GeneralUpdate.Common.Internal.Pipeline;
124
using GeneralUpdate.Core.Driver;
135

src/c#/GeneralUpdate.Core/Pipeline/HashMiddleware.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
using System;
2-
using System.Diagnostics;
32
using System.Security.Cryptography;
43
using System.Threading.Tasks;
54
using GeneralUpdate.Common.HashAlgorithms;
6-
using GeneralUpdate.Common.Internal;
7-
using GeneralUpdate.Common.Internal.Event;
85
using GeneralUpdate.Common.Internal.Pipeline;
96

107
namespace GeneralUpdate.Core.Pipeline;

src/c#/GeneralUpdate.Core/Pipeline/PatchMiddleware.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Diagnostics;
4-
using System.Threading.Tasks;
5-
using GeneralUpdate.Common.FileBasic;
6-
using GeneralUpdate.Common.Internal;
7-
using GeneralUpdate.Common.Internal.Event;
1+
using System.Threading.Tasks;
82
using GeneralUpdate.Common.Internal.Pipeline;
93
using GeneralUpdate.Differential;
104

0 commit comments

Comments
 (0)