Skip to content

Commit 3c21b8d

Browse files
author
D. A. Pellegrino
committed
Merge branch '251-remove-ftime' into 254-set-dumpDictionary-test-input
2 parents 38476a6 + 3000a70 commit 3c21b8d

1 file changed

Lines changed: 1 addition & 25 deletions

File tree

libhdt/src/dictionary/PlainDictionary.hpp

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,6 @@
4343
#include <iostream>
4444
#include <unordered_map>
4545

46-
//#define GOOGLE_HASH
47-
48-
#ifdef GOOGLE_HASH
49-
#include <sparsehash/sparse_hash_map>
50-
51-
using google::sparse_hash_map; // namespace where class lives by default
52-
using __gnu_cxx::hash; // or __gnu_cxx::hash, or maybe tr1::hash, depending on your OS
53-
54-
#else
55-
56-
#ifndef WIN32
57-
namespace std { using namespace __gnu_cxx; }
58-
#endif
59-
60-
#endif
61-
62-
6346
namespace hdt {
6447

6548
struct DictionaryEntry {
@@ -79,17 +62,10 @@ struct str_cmp {
7962

8063
typedef std::pair<const char*, DictionaryEntry *> DictEntryPair;
8164

82-
#ifdef GOOGLE_HASH
83-
typedef sparse_hash_map<const char *, DictionaryEntry *, hash<const char *>, str_cmp> DictEntryHash;
84-
#else
85-
86-
typedef unordered_map<const char *, DictionaryEntry *, hash<const char *>, str_cmp> DictEntryHash;
87-
88-
#endif
65+
typedef std::unordered_map<const char *, DictionaryEntry *, hash<std::string>, str_cmp> DictEntryHash;
8966

9067
typedef DictEntryHash::const_iterator DictEntryIt;
9168

92-
9369
class PlainDictionary : public ModifiableDictionary {
9470
private:
9571
std::vector<DictionaryEntry*> predicates;

0 commit comments

Comments
 (0)