Skip to content

Commit d76e16c

Browse files
committed
Cleanup dead code
1 parent 004679f commit d76e16c

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/Platform/Microsoft.Testing.Platform/Services/CurrentTestApplicationModuleInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ public ExecutableInfo GetCurrentExecutableInfo()
127127
_ => commandLineArguments,
128128
};
129129

130-
return new(GetProcessPath(), arguments, GetCurrentTestApplicationDirectory());
130+
return new ExecutableInfo(GetProcessPath(), arguments);
131131
}
132132
}

src/Platform/Microsoft.Testing.Platform/Services/ExecutableInfo.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33

44
namespace Microsoft.Testing.Platform.Services;
55

6-
internal sealed class ExecutableInfo(string filePath, IEnumerable<string> arguments, string workspace)
6+
internal sealed class ExecutableInfo(string filePath, IEnumerable<string> arguments)
77
{
88
public string FilePath { get; } = filePath;
99

1010
public IEnumerable<string> Arguments { get; } = arguments;
1111

12-
public string Workspace { get; } = workspace;
13-
1412
public override string ToString()
15-
=> $"Process: {FilePath}, Arguments: {string.Join(' ', Arguments)}, Workspace: {Workspace}";
13+
=> $"Process: {FilePath}, Arguments: {string.Join(' ', Arguments)}";
1614
}

0 commit comments

Comments
 (0)