libutil: Remove non-needed constructor

This commit is contained in:
Jacek Galowicz 2023-10-19 18:24:54 +01:00
parent 87c4f4a972
commit 55f06b6f30
2 changed files with 2 additions and 5 deletions

View file

@ -33,9 +33,9 @@ bool Config::set(const std::string & name, const std::string & value)
void Config::addSetting(AbstractSetting * setting) void Config::addSetting(AbstractSetting * setting)
{ {
_settings.emplace(setting->name, Config::SettingData(false, setting)); _settings.emplace(setting->name, Config::SettingData{false, setting});
for (auto & alias : setting->aliases) for (auto & alias : setting->aliases)
_settings.emplace(alias, Config::SettingData(true, setting)); _settings.emplace(alias, Config::SettingData{true, setting});
bool set = false; bool set = false;

View file

@ -148,9 +148,6 @@ public:
{ {
bool isAlias; bool isAlias;
AbstractSetting * setting; AbstractSetting * setting;
SettingData(bool isAlias, AbstractSetting * setting)
: isAlias(isAlias), setting(setting)
{ }
}; };
typedef std::map<std::string, SettingData> Settings; typedef std::map<std::string, SettingData> Settings;