diff options
author | Chris Robinson <[email protected]> | 2019-06-10 21:56:09 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-06-10 21:56:09 -0700 |
commit | 1a14946306a29ce2a14bf3d3f536ab24100ada83 (patch) | |
tree | 9efcd87b050b7c2540907d661fae980bee185f16 /Alc/alconfig.cpp | |
parent | c22d537d93a131215600373010b0d240e7b2c0df (diff) |
Get rid of an unnecessary constructor
Diffstat (limited to 'Alc/alconfig.cpp')
-rw-r--r-- | Alc/alconfig.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Alc/alconfig.cpp b/Alc/alconfig.cpp index db5251f0..710c790c 100644 --- a/Alc/alconfig.cpp +++ b/Alc/alconfig.cpp @@ -54,11 +54,6 @@ namespace { struct ConfigEntry { std::string key; std::string value; - - template<typename T0, typename T1> - ConfigEntry(T0&& key_, T1&& val_) - : key{std::forward<T0>(key_)}, value{std::forward<T1>(val_)} - { } }; al::vector<ConfigEntry> ConfOpts; @@ -272,7 +267,7 @@ void LoadConfigFromFile(std::istream &f) ent->value = expdup(value); else { - ConfOpts.emplace_back(std::move(fullKey), expdup(value)); + ConfOpts.emplace_back(ConfigEntry{std::move(fullKey), expdup(value)}); ent = ConfOpts.end()-1; } |