Skip to content

Commit 8a4a5dc

Browse files
nagilsondsplaisted
authored andcommitted
remove unused function
1 parent f4f5c2b commit 8a4a5dc

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

test/dnup.Tests/Utilities/DnupTestUtilities.cs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ public static (int exitCode, string output) RunDnupProcess(string[] args, bool c
8888
throw new FileNotFoundException($"dnup executable not found at: {dnupPath}");
8989
}
9090

91-
using var process = new Process();
92-
string repoDotnet = Path.Combine(repoRoot, ".dotnet", DnupUtilities.GetDotnetExeName());
93-
process.StartInfo.FileName = File.Exists(repoDotnet) ? repoDotnet : DnupUtilities.GetDotnetExeName();
91+
using var process = new Process();
92+
string repoDotnet = Path.Combine(repoRoot, ".dotnet", DnupUtilities.GetDotnetExeName());
93+
process.StartInfo.FileName = File.Exists(repoDotnet) ? repoDotnet : DnupUtilities.GetDotnetExeName();
9494
process.StartInfo.Arguments = $"\"{dnupPath}\" {string.Join(" ", args.Select(a => $"\"{a}\""))}";
9595
process.StartInfo.UseShellExecute = false;
9696
process.StartInfo.CreateNoWindow = true;
9797
process.StartInfo.RedirectStandardOutput = captureOutput;
9898
process.StartInfo.RedirectStandardError = captureOutput;
99-
process.StartInfo.WorkingDirectory = workingDirectory ?? Environment.CurrentDirectory;
99+
process.StartInfo.WorkingDirectory = workingDirectory ?? Environment.CurrentDirectory;
100100

101101
StringBuilder outputBuilder = new();
102102
if (captureOutput)
@@ -145,9 +145,4 @@ private static string GetRepositoryRoot()
145145
throw new InvalidOperationException($"Unable to locate repository root from base directory '{AppContext.BaseDirectory}'.");
146146
}
147147

148-
/// <summary>
149-
/// Maps System.Runtime.InteropServices.Architecture to Microsoft.Dotnet.Installation.InstallArchitecture
150-
/// </summary>
151-
public static InstallArchitecture MapArchitecture(Architecture architecture) =>
152-
InstallerUtilities.GetInstallArchitecture(architecture);
153148
}

0 commit comments

Comments
 (0)