summaryrefslogtreecommitdiff
path: root/Kernel/CommandLine.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-18 14:22:42 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-18 14:22:42 +0200
commite3b450005f2f2d470d788a7f6e115b4fdc80fa6e (patch)
treef635d3739d156bbd83f58b8ac8220a1465231330 /Kernel/CommandLine.cpp
parentcebb619f8e684e6ce844f83299c4abac57ab7fa3 (diff)
downloadserenity-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.cpp5
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);