refactoring and remove dead code in lmdb

This commit is contained in:
Martin Vierula
2023-10-24 06:36:18 -07:00
parent 3951ba0e48
commit dc6cce5f0c
4 changed files with 15 additions and 55 deletions

View File

@@ -45,7 +45,6 @@ class Collection {
public:
explicit Collection(const std::string &a) : m_name(a) { }
virtual ~Collection() { }
virtual void store(std::string key, std::string value) = 0;
virtual bool storeOrUpdateFirst(const std::string &key,
const std::string &value) = 0;
@@ -70,21 +69,6 @@ class Collection {
variables::KeyExclusions &ke) = 0;
/* store */
virtual void store(std::string key, std::string compartment,
std::string value) {
std::string nkey = compartment + "::" + key;
store(nkey, value);
}
virtual void store(std::string key, std::string compartment,
std::string compartment2, std::string value) {
std::string nkey = compartment + "::" + compartment2 + "::" + key;
store(nkey, value);
}
/* storeOrUpdateFirst */
virtual bool storeOrUpdateFirst(const std::string &key,
std::string compartment, const std::string &value) {