From 1a14946306a29ce2a14bf3d3f536ab24100ada83 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 10 Jun 2019 21:56:09 -0700 Subject: Get rid of an unnecessary constructor --- Alc/alconfig.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Alc/alconfig.cpp') 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 - ConfigEntry(T0&& key_, T1&& val_) - : key{std::forward(key_)}, value{std::forward(val_)} - { } }; al::vector 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; } -- cgit v1.2.3