diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-18 14:22:42 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-18 14:22:42 +0200 |
commit | e3b450005f2f2d470d788a7f6e115b4fdc80fa6e (patch) | |
tree | f635d3739d156bbd83f58b8ac8220a1465231330 /Kernel/CommandLine.cpp | |
parent | cebb619f8e684e6ce844f83299c4abac57ab7fa3 (diff) | |
download | serenity-e3b450005f2f2d470d788a7f6e115b4fdc80fa6e.zip |
Kernel: Remove CommandLine::get() in favor of lookup()
lookup() returns an Optional<String> which allows us to implement easy
default values using lookup(key).value_or(default_value);
Diffstat (limited to 'Kernel/CommandLine.cpp')
-rw-r--r-- | Kernel/CommandLine.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Kernel/CommandLine.cpp b/Kernel/CommandLine.cpp index b87879ce7e..8b50e7aeec 100644 --- a/Kernel/CommandLine.cpp +++ b/Kernel/CommandLine.cpp @@ -66,11 +66,6 @@ Optional<String> CommandLine::lookup(const String& key) const return m_params.get(key); } -String CommandLine::get(const String& key) const -{ - return m_params.get(key).value_or({}); -} - bool CommandLine::contains(const String& key) const { return m_params.contains(key); |