remove unused and internal qt_set_current_thread_to_main_thread()

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2020-03-30 00:00:30 +00:00
parent 7a75f6a4ac
commit d00f2bee3d

View file

@ -166,12 +166,6 @@ Q_CORE_EXPORT uint qGlobalPostedEventsCount()
return currentThreadData->postEventList.size() - currentThreadData->postEventList.startOffset; return currentThreadData->postEventList.size() - currentThreadData->postEventList.startOffset;
} }
void qt_set_current_thread_to_main_thread()
{
QCoreApplicationPrivate::theMainThread = QThread::currentThread();
}
QCoreApplication *QCoreApplication::self = 0; QCoreApplication *QCoreApplication::self = 0;
QAbstractEventDispatcher *QCoreApplicationPrivate::eventDispatcher = 0; QAbstractEventDispatcher *QCoreApplicationPrivate::eventDispatcher = 0;
std::bitset<Qt::AA_AttributeCount> QCoreApplicationPrivate::attribs; std::bitset<Qt::AA_AttributeCount> QCoreApplicationPrivate::attribs;