Skip to content

Commit 516ebbd

Browse files
committed
Cleanup unused namespaces across multiple files
Removed several unnecessary `using` directives, including `System.Linq`, `System.Threading.Tasks`, and others, to streamline code and improve readability. Made minor formatting adjustments in `SubscriberClass.cs` and refactored dependencies in `CAP.BuilderTest.cs` and `TestServiceCollectionExtensions.cs`. Overall, these changes enhance code maintainability by reducing unneeded dependencies.
1 parent c891e9d commit 516ebbd

File tree

11 files changed

+2
-15
lines changed

11 files changed

+2
-15
lines changed

src/DotNetCore.CAP.MySql/ICapTransaction.MySql.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) .NET Core Community. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

4-
using System;
54
using System.Data;
65
using System.Data.Common;
76
using System.Diagnostics;

src/DotNetCore.CAP.MySql/IDataStorage.MySql.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Collections.Generic;
66
using System.Data;
77
using System.Data.Common;
8-
using System.Linq;
98
using System.Threading;
109
using System.Threading.Tasks;
1110
using DotNetCore.CAP.Internal;

src/DotNetCore.CAP.PostgreSql/ICapTransaction.PostgreSql.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) .NET Core Community. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

4-
using System;
54
using System.Data;
65
using System.Data.Common;
76
using System.Diagnostics;

src/DotNetCore.CAP.PostgreSql/IDataStorage.PostgreSql.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Collections.Generic;
66
using System.Data.Common;
7-
using System.Linq;
87
using System.Threading;
98
using System.Threading.Tasks;
109
using DotNetCore.CAP.Internal;

src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Collections.Generic;
66
using System.Data;
77
using System.Data.Common;
8-
using System.Linq;
98
using System.Threading;
109
using System.Threading.Tasks;
1110
using DotNetCore.CAP.Internal;

src/DotNetCore.CAP/Internal/ISubscribeExector.Default.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Collections.Generic;
66
using System.Diagnostics;
7-
using System.Net;
87
using System.Reflection;
98
using System.Threading;
109
using System.Threading.Tasks;

test/DotNetCore.CAP.MultiModuleSubscriberTests/SubscriberClass.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
3-
namespace DotNetCore.CAP.MultiModuleSubscriberTests
1+
namespace DotNetCore.CAP.MultiModuleSubscriberTests
42
{
53
public class SubscriberClass
64
{

test/DotNetCore.CAP.Test/CAP.BuilderTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Collections.Generic;
33
using System.Threading;
44
using System.Threading.Tasks;
5-
using DotNetCore.CAP.Internal;
65
using Microsoft.Extensions.DependencyInjection;
76
using Microsoft.Extensions.Options;
87
using Xunit;

test/DotNetCore.CAP.Test/Helpers/ObservableCollectionExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Linq;
66
using System.Threading;
77
using System.Threading.Tasks;
8-
using Xunit;
98

109
namespace DotNetCore.CAP.Test.Helpers
1110
{

test/DotNetCore.CAP.Test/Helpers/TestServiceCollectionExtensions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System;
2-
using System.Threading;
1+
using System.Threading;
32
using DotNetCore.CAP.Test.FakeInMemoryQueue;
43
using Microsoft.Extensions.DependencyInjection;
54
using Xunit.Abstractions;

0 commit comments

Comments
 (0)