OSDN Git Service

remove unused and internal qt_set_current_thread_to_main_thread()
authorIvailo Monev <xakepa10@laimg.moc>
Mon, 30 Mar 2020 00:00:30 +0000 (00:00 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Mon, 30 Mar 2020 00:00:30 +0000 (00:00 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/core/kernel/qcoreapplication.cpp

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