forked from lix-project/lix
Config::handleUnknownSettings(): Remove unused 'fatal' argument
This commit is contained in:
parent
75a1d96cfd
commit
ed73d40c3b
|
@ -47,13 +47,10 @@ void Config::addSetting(AbstractSetting * setting)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Config::handleUnknownSettings(bool fatal)
|
void Config::handleUnknownSettings()
|
||||||
{
|
{
|
||||||
for (auto & s : extras)
|
for (auto & s : extras)
|
||||||
if (fatal)
|
warn("unknown setting '%s'", s.first);
|
||||||
throw UsageError("unknown setting '%s%'", s.first);
|
|
||||||
else
|
|
||||||
warn("unknown setting '%s'", s.first);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StringMap Config::getSettings(bool overridenOnly)
|
StringMap Config::getSettings(bool overridenOnly)
|
||||||
|
|
|
@ -60,7 +60,7 @@ public:
|
||||||
|
|
||||||
void addSetting(AbstractSetting * setting);
|
void addSetting(AbstractSetting * setting);
|
||||||
|
|
||||||
void handleUnknownSettings(bool fatal = false);
|
void handleUnknownSettings();
|
||||||
|
|
||||||
StringMap getSettings(bool overridenOnly = false);
|
StringMap getSettings(bool overridenOnly = false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue