remove QHashDummyNode and QHashDummyValue leftovers

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-12-19 12:30:46 +00:00
parent 1435f76efd
commit c008a0ed4d
3 changed files with 2 additions and 6 deletions

View file

@ -299,8 +299,6 @@ classlist = [
"QGuiPlatformPlugin", "QGuiPlatformPlugin",
"QHash", "QHash",
"QHashData", "QHashData",
"QHashDummyNode",
"QHashDummyValue",
"QHashNode", "QHashNode",
"QHBoxLayout", "QHBoxLayout",
"QHeaderView", "QHeaderView",

View file

@ -66,8 +66,6 @@ set(CORE_PUBLIC_HEADERS
QIODevice QIODevice
QtConfig QtConfig
QPair QPair
QHashDummyNode
QHashDummyValue
QFutureWatcherBase QFutureWatcherBase
QPoint QPoint
QByteArray QByteArray

View file

@ -71,7 +71,7 @@ inline uint qHash(const SubArray &key)
struct Symbol struct Symbol
{ {
#ifdef USE_LEXEM_STORE #ifdef USE_LEXEM_STORE
typedef QHash<SubArray, QHashDummyValue> LexemStore; typedef QSet<SubArray> LexemStore;
static LexemStore lexemStore; static LexemStore lexemStore;
inline Symbol() : lineNum(-1),token(NOTOKEN){} inline Symbol() : lineNum(-1),token(NOTOKEN){}
@ -87,7 +87,7 @@ struct Symbol
lex = it.key().array; lex = it.key().array;
} else { } else {
lex = lexem.mid(from, len); lex = lexem.mid(from, len);
lexemStore.insert(lex, QHashDummyValue()); lexemStore.insert(lex);
} }
} }
int lineNum; int lineNum;