about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-02-19T13·00+0100
committerEelco Dolstra <edolstra@gmail.com>2018-02-19T13·00+0100
commited73d40c3b19dc0581bbf28ef29aad50cab3aaf2 (patch)
tree3aa9283ea405b879a990cbe68a4918f39b57c6ff
parent75a1d96cfd931e6e598040f5961d6d33f417ba56 (diff)
Config::handleUnknownSettings(): Remove unused 'fatal' argument
-rw-r--r--src/libutil/config.cc7
-rw-r--r--src/libutil/config.hh2
2 files changed, 3 insertions, 6 deletions
diff --git a/src/libutil/config.cc b/src/libutil/config.cc
index cdd1e0a15aa6..ce6858f0d65a 100644
--- a/src/libutil/config.cc
+++ b/src/libutil/config.cc
@@ -47,13 +47,10 @@ void Config::addSetting(AbstractSetting * setting)
     }
 }
 
-void Config::handleUnknownSettings(bool fatal)
+void Config::handleUnknownSettings()
 {
     for (auto & s : extras)
-        if (fatal)
-            throw UsageError("unknown setting '%s%'", s.first);
-        else
-            warn("unknown setting '%s'", s.first);
+        warn("unknown setting '%s'", s.first);
 }
 
 StringMap Config::getSettings(bool overridenOnly)
diff --git a/src/libutil/config.hh b/src/libutil/config.hh
index c6783e13c2b0..d2e7faf17434 100644
--- a/src/libutil/config.hh
+++ b/src/libutil/config.hh
@@ -60,7 +60,7 @@ public:
 
     void addSetting(AbstractSetting * setting);
 
-    void handleUnknownSettings(bool fatal = false);
+    void handleUnknownSettings();
 
     StringMap getSettings(bool overridenOnly = false);