Commit d5cc6e15 authored by Georgios Bitzes's avatar Georgios Bitzes

COMMON: Drop unused (and non-compiling) ifdef based on EOS_STDMAP_DBMAP

parent 32624aba
Pipeline #704251 canceled with stages
in 26 seconds
......@@ -144,11 +144,7 @@ public:
typedef DbMapTypes::TlogentryVec TlogentryVec;
typedef std::pair<Tkey, Tval> Tkeyval;
typedef typename TDbMapInterface::Option Toption;
#ifdef EOS_STDMAP_DBMAP
typedef std::map<Tkey, Tval> Tmap;
#else
typedef ::google::dense_hash_map<Tkey, Tval> Tmap;
#endif
typedef std::vector<Tkeyval> Tlist;
private:
......@@ -669,16 +665,12 @@ public:
gInitialized = true;
}
#ifndef EOS_STDMAP_DBMAP
try {
pMap.set_empty_key("\x01");
pMap.set_deleted_key("\x02");
pSetSeqMap.set_empty_key("\x01");
pSetSeqMap.set_deleted_key("\x02");
} catch (const std::length_error& e) {}
#endif
}
//----------------------------------------------------------------------------
......
......@@ -296,11 +296,7 @@ public:
int createperm = 0, void* option = NULL);
virtual bool trimDb();
virtual std::string getAttachedDbName() const;
#ifdef EOS_STDMAP_DBMAP
virtual bool syncFromDb(std::map<Tkey, Tval>* map);
#else
virtual bool syncFromDb(::google::dense_hash_map<Tkey, Tval>* map);
#endif
virtual bool detachDb();
// Requestors
virtual size_t getAll(TlogentryVec* retvec, size_t nmax,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment