From 10ba60637666c8d67848482ea34422e8ef35e071 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Tue, 20 Dec 2022 16:05:37 +0100 Subject: [PATCH] remove default Parser ctor --- ...ests.System_CommandLine_api_is_not_changed.approved.txt | 1 - src/System.CommandLine/Parsing/Parser.cs | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/System.CommandLine.ApiCompatibility.Tests/ApiCompatibilityApprovalTests.System_CommandLine_api_is_not_changed.approved.txt b/src/System.CommandLine.ApiCompatibility.Tests/ApiCompatibilityApprovalTests.System_CommandLine_api_is_not_changed.approved.txt index fb0f9affe1..609adccecc 100644 --- a/src/System.CommandLine.ApiCompatibility.Tests/ApiCompatibilityApprovalTests.System_CommandLine_api_is_not_changed.approved.txt +++ b/src/System.CommandLine.ApiCompatibility.Tests/ApiCompatibilityApprovalTests.System_CommandLine_api_is_not_changed.approved.txt @@ -408,7 +408,6 @@ System.CommandLine.Parsing public class Parser .ctor(System.CommandLine.CommandLineConfiguration configuration) .ctor(System.CommandLine.Command command) - .ctor() public System.CommandLine.CommandLineConfiguration Configuration { get; } public System.CommandLine.ParseResult Parse(System.Collections.Generic.IReadOnlyList arguments, System.String rawInput = null) public static class ParseResultExtensions diff --git a/src/System.CommandLine/Parsing/Parser.cs b/src/System.CommandLine/Parsing/Parser.cs index 3271e062fb..a30e8a55ea 100644 --- a/src/System.CommandLine/Parsing/Parser.cs +++ b/src/System.CommandLine/Parsing/Parser.cs @@ -21,13 +21,6 @@ public Parser(CommandLineConfiguration configuration) public Parser(Command command) : this(new CommandLineConfiguration(command)) { } - - /// - /// Initializes a new instance of the class using the default . - /// - public Parser() : this(new RootCommand()) - { - } /// /// Gets the configuration on which the parser's grammar and behaviors are based.