summaryrefslogtreecommitdiff
path: root/src/config.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-07-26 21:42:26 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-07-26 21:42:26 +0200
commit35ead0aaa5c7a7d9a17ab3dad65cfb9f0252889b (patch)
tree887b53e67080383626fd2d21b8e2a122f1f50272 /src/config.cc
parent9ae48fac3ba4592a2257618f0ff5b1ce528499d8 (diff)
Add Config::remove
Removes any config value set by Config::set()
Diffstat (limited to 'src/config.cc')
-rw-r--r--src/config.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.cc b/src/config.cc
index db42a7b..90ef95d 100644
--- a/src/config.cc
+++ b/src/config.cc
@@ -90,6 +90,10 @@ public:
}
}
+ void remove(std::string const& key) override {
+ override_.erase(key);
+ }
+
private:
bool update(bool good, std::string const& last_error,
std::unordered_map<std::string, std::string>& data) {