Skip to content

Commit fc81ab9

Browse files
authored
Cleanup dead code in dotnet test (#49952)
1 parent 966172f commit fc81ab9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Cli/dotnet/Commands/Test/Options.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Microsoft.DotNet.Cli.Commands.Test;
55

6-
internal record TestOptions(string Architecture, bool HasFilterMode, bool IsHelp);
6+
internal record TestOptions(bool HasFilterMode, bool IsHelp);
77

88
internal record PathOptions(string? ProjectPath, string? SolutionPath, string? DirectoryPath);
99

src/Cli/dotnet/Commands/Test/TestingPlatformCommand.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private void PrepareEnvironment(ParseResult parseResult, out TestOptions testOpt
9292
bool filterModeEnabled = parseResult.HasOption(TestingPlatformOptions.TestModulesFilterOption);
9393

9494
var arguments = parseResult.GetArguments();
95-
testOptions = GetTestOptions(parseResult, filterModeEnabled, isHelp: ContainsHelpOption(arguments));
95+
testOptions = GetTestOptions(filterModeEnabled, isHelp: ContainsHelpOption(arguments));
9696

9797
_isDiscovery = ContainsListTestsOption(arguments);
9898

@@ -180,10 +180,8 @@ private static int GetDegreeOfParallelism(ParseResult parseResult)
180180
return degreeOfParallelism;
181181
}
182182

183-
private static TestOptions GetTestOptions(ParseResult parseResult, bool hasFilterMode, bool isHelp) =>
184-
new(parseResult.GetValue(CommonOptions.ArchitectureOption),
185-
hasFilterMode,
186-
isHelp);
183+
private static TestOptions GetTestOptions(bool hasFilterMode, bool isHelp) =>
184+
new(hasFilterMode, isHelp);
187185

188186
private static bool ContainsHelpOption(IEnumerable<string> args)
189187
{

0 commit comments

Comments
 (0)