summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/ArgsParser.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-26 22:32:37 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-26 23:27:57 +0100
commitf1cc3d0fc48af5247278101f863d6416f763733e (patch)
tree56029f2d24e02d6028e6ea45c3037865739527c9 /Userland/Libraries/LibCore/ArgsParser.cpp
parent395ba619d8b0a5ac38368991a9da445cfb0e03a9 (diff)
downloadserenity-f1cc3d0fc48af5247278101f863d6416f763733e.zip
Userland: Use Core::ArgsParser's Vector<StringView> API everywhere
...and remove the Vector<String> variant since there are no remaining users of this API.
Diffstat (limited to 'Userland/Libraries/LibCore/ArgsParser.cpp')
-rw-r--r--Userland/Libraries/LibCore/ArgsParser.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/Userland/Libraries/LibCore/ArgsParser.cpp b/Userland/Libraries/LibCore/ArgsParser.cpp
index db1ec8d5e7..f37e0a7d9b 100644
--- a/Userland/Libraries/LibCore/ArgsParser.cpp
+++ b/Userland/Libraries/LibCore/ArgsParser.cpp
@@ -580,21 +580,6 @@ void ArgsParser::add_positional_argument(Vector<const char*>& values, const char
add_positional_argument(move(arg));
}
-void ArgsParser::add_positional_argument(Vector<String>& values, const char* help_string, const char* name, Required required)
-{
- Arg arg {
- help_string,
- name,
- required == Required::Yes ? 1 : 0,
- INT_MAX,
- [&values](const char* s) {
- values.append(s);
- return true;
- }
- };
- add_positional_argument(move(arg));
-}
-
void ArgsParser::add_positional_argument(Vector<StringView>& values, char const* help_string, char const* name, Required required)
{
Arg arg {