From 645d728f0f14e0f6e3b1f45a4c5b5fbcc5e872ad Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 4 Nov 2014 22:16:50 -0500 Subject: [PATCH] CLI - The ::insert method is not needed, and is removed. --- src/CLI.cpp | 14 +------------- src/CLI.h | 3 +-- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/CLI.cpp b/src/CLI.cpp index 105409f05..196778574 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -279,18 +279,6 @@ void CLI::add (const std::string& arg) analyze (); } -//////////////////////////////////////////////////////////////////////////////// -// Capture a single argument, after BINARY. -void CLI::insert (const std::string& arg) -{ - // Clean the ID/UUID lists, because they will be rebuilt. - _id_ranges.clear (); - _uuid_list.clear (); - - addArg (arg, true); - analyze (); -} - //////////////////////////////////////////////////////////////////////////////// // Intended to be called after ::initialize() and ::add(), to perform the final // analysis. Analysis is also performed directly after the above, because there @@ -598,7 +586,7 @@ const std::string CLI::dump (const std::string& title /* = "CLI Parser" */) cons // be lexed from those that need to be left alone. // // Either the arg is appended to _original_args intact, or the lexemes are. -void CLI::addArg (const std::string& arg, bool first /* = false */) +void CLI::addArg (const std::string& arg) { // Do not lex these constructs. if (isTerminator (arg) || // -- diff --git a/src/CLI.h b/src/CLI.h index 76849f0ea..82dd43e0e 100644 --- a/src/CLI.h +++ b/src/CLI.h @@ -70,7 +70,6 @@ public: void entity (const std::string&, const std::string&); void initialize (int, const char**); void add (const std::string&); - void insert (const std::string&); void analyze (bool parse = true); void applyOverrides (); void getOverride (std::string&, File&); @@ -85,7 +84,7 @@ public: const std::string dump (const std::string& title = "CLI Parser") const; private: - void addArg (const std::string&, bool first = false); + void addArg (const std::string&); void aliasExpansion (); void findOverrides (); void categorize ();