Skip to content

Commit 0efdc7a

Browse files
authored
Delete unused internal extension method (#50146)
2 parents e9c700a + 6f856fe commit 0efdc7a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/Cli/dotnet/Extensions/ParseResultExtensions.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -175,19 +175,6 @@ public static bool BothArchAndOsOptionsSpecified(this ParseResult parseResult) =
175175
parseResult.HasOption(CommonOptions.LongFormArchitectureOption)) &&
176176
parseResult.HasOption(CommonOptions.OperatingSystemOption);
177177

178-
internal static string? GetCommandLineRuntimeIdentifier(this ParseResult parseResult)
179-
{
180-
return parseResult.HasOption(CommonOptions.RuntimeOptionName) ?
181-
parseResult.GetValue<string>(CommonOptions.RuntimeOptionName) :
182-
parseResult.HasOption(CommonOptions.OperatingSystemOption) ||
183-
parseResult.HasOption(CommonOptions.ArchitectureOption) ||
184-
parseResult.HasOption(CommonOptions.LongFormArchitectureOption) ?
185-
CommonOptions.ResolveRidShorthandOptionsToRuntimeIdentifier(
186-
parseResult.GetValue(CommonOptions.OperatingSystemOption),
187-
CommonOptions.ArchOptionValue(parseResult)) :
188-
null;
189-
}
190-
191178
public static bool UsingRunCommandShorthandProjectOption(this ParseResult parseResult)
192179
{
193180
if (parseResult.HasOption(RunCommandParser.PropertyOption) && parseResult.GetValue(RunCommandParser.PropertyOption)!.Any())

0 commit comments

Comments
 (0)