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",
"QHash",
"QHashData",
"QHashDummyNode",
"QHashDummyValue",
"QHashNode",
"QHBoxLayout",
"QHeaderView",

View file

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

View file

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