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.