Skip to content

Commit c6eef5a

Browse files
committed
Remove unused using directives and clean up namespaces
Clean up multiple source files by removing unused using directives, including references to logging, token models, Docker models, and GitHub services. Also, adjust namespace formatting in IProcessProvider.cs for consistency and remove a redundant System.Diagnostics import. This improves code readability and reduces unnecessary dependencies. #69
1 parent 57f0193 commit c6eef5a

9 files changed

Lines changed: 1 addition & 15 deletions

File tree

‎src/SynentraCtl.Infrastructure/Services/ProcessHost/IProcessProvider.cs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Diagnostics;
2-
3-
namespace SynentraCtl.Infrastructure.Services.ProcessHost;
1+
namespace SynentraCtl.Infrastructure.Services.ProcessHost;
42

53
public interface IProcessProvider
64
{

‎src/SynentraCtl/Commands/AgentsCommand.cs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.CommandLine;
33
using Synentra.Client.Abstractions;
44
using Synentra.Client.Models.Agents;
5-
using SynentraCtl.Core.Services.Logger;
65

76
namespace SynentraCtl.Commands;
87

‎src/SynentraCtl/Commands/HitlCommand.cs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.CommandLine;
33
using Synentra.Client.Abstractions;
44
using Synentra.Client.Models.Hitl;
5-
using SynentraCtl.Core.Services.Logger;
65

76
namespace SynentraCtl.Commands;
87

‎src/SynentraCtl/Commands/PoliciesCommand.cs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Microsoft.Extensions.DependencyInjection;
22
using System.CommandLine;
33
using Synentra.Client.Abstractions;
4-
using SynentraCtl.Core.Services.Logger;
54

65
namespace SynentraCtl.Commands;
76

‎src/SynentraCtl/Commands/ProxyCommand.cs‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
using Microsoft.Extensions.DependencyInjection;
2-
using Microsoft.Extensions.Logging;
32
using Synentra.Client.Abstractions;
4-
using Synentra.Client.Models.Tokens;
53
using System.CommandLine;
6-
using System.Text;
74

85
namespace SynentraCtl.Commands;
96

‎src/SynentraCtl/Commands/RunCommand.cs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Microsoft.Extensions.DependencyInjection;
22
using System.CommandLine;
33
using System.Diagnostics;
4-
using System.Runtime.InteropServices;
54
using SynentraCtl.Core.Models.Configuration;
65
using SynentraCtl.Core.Models.Docker;
76
using SynentraCtl.Core.Services.Configuration;

‎src/SynentraCtl/Commands/TokenCommand.cs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.CommandLine;
33
using Synentra.Client.Abstractions;
44
using Synentra.Client.Models.Tokens;
5-
using SynentraCtl.Core.Services.Logger;
65

76
namespace SynentraCtl.Commands;
87

‎tests/SynentraCtl.UnitTests/Commands/ApiCommandActionTests.cs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using FluentAssertions;
21
using Microsoft.Extensions.DependencyInjection;
32
using NSubstitute;
43
using NSubstitute.ExceptionExtensions;

‎tests/SynentraCtl.UnitTests/Commands/CommandCreationTests.cs‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
using FluentAssertions;
22
using Microsoft.Extensions.DependencyInjection;
33
using NSubstitute;
4-
using System.CommandLine;
54
using Synentra.Client.Abstractions;
65
using SynentraCtl.Commands;
76
using SynentraCtl.Core.Models.Configuration;
8-
using SynentraCtl.Core.Models.Docker;
9-
using SynentraCtl.Core.Serialization;
107
using SynentraCtl.Core.Services.Configuration;
118
using SynentraCtl.Core.Services.Docker;
129
using SynentraCtl.Core.Services.Extractor;

0 commit comments

Comments
 (0)