diff --git a/encfs/Context.h b/encfs/Context.h index eda8b74..1d74883 100644 --- a/encfs/Context.h +++ b/encfs/Context.h @@ -25,12 +25,8 @@ #include #include -#ifdef USE_HASHMAP -#include -#else -#include -#endif #include +#include #include "encfs.h" #include "shared_ptr.h" @@ -90,12 +86,7 @@ class EncFS_Context { Placeholder(const shared_ptr &ptr) : node(ptr) {} }; -#ifdef USE_HASHMAP - // set of open files, indexed by path - typedef __gnu_cxx::hash_map > FileMap; -#else - typedef std::map > FileMap; -#endif + typedef std::unordered_map > FileMap; mutable pthread_mutex_t contextMutex; FileMap openFiles; diff --git a/encfs/DirNode.h b/encfs/DirNode.h index 50258cd..9829dcf 100644 --- a/encfs/DirNode.h +++ b/encfs/DirNode.h @@ -76,17 +76,6 @@ class DirTraverse { }; inline bool DirTraverse::valid() const { return dir.get() != 0; } -#ifdef USE_HASHMAP -namespace __gnu_cxx { -template <> -struct hash { - size_t operator()(const std::string &__s) const { - return __stl_hash_string(__s.c_str()); - } -}; -} -#endif - class DirNode { public: // sourceDir points to where raw files are stored