From d00f2bee3d6c4639dba899e3a43ea4d9e1852c1d Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 30 Mar 2020 00:00:30 +0000 Subject: [PATCH] remove unused and internal qt_set_current_thread_to_main_thread() Signed-off-by: Ivailo Monev --- src/core/kernel/qcoreapplication.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/core/kernel/qcoreapplication.cpp b/src/core/kernel/qcoreapplication.cpp index 24ec9651f..10f4ba4db 100644 --- a/src/core/kernel/qcoreapplication.cpp +++ b/src/core/kernel/qcoreapplication.cpp @@ -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 QCoreApplicationPrivate::attribs; -- 2.11.0