Remove unused qt_application_thread_id variable

Seems to be a write-only variable and QThread::currentThreadId has no
side-effects.

Change-Id: Ifaee7464122d402991b6fffd14a0c8666968dfe4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Thiago Macieira 2017-02-06 11:10:19 -08:00
parent e6a67bb9ec
commit 8798d03e7e

View File

@ -318,10 +318,6 @@ Q_CORE_EXPORT uint qGlobalPostedEventsCount()
QAbstractEventDispatcher *QCoreApplicationPrivate::eventDispatcher = 0;
#ifdef Q_OS_UNIX
Qt::HANDLE qt_application_thread_id = 0;
#endif
#endif // QT_NO_QOBJECT
QCoreApplication *QCoreApplication::self = 0;
@ -431,10 +427,6 @@ QCoreApplicationPrivate::QCoreApplicationPrivate(int &aargc, char **aargv, uint
qFatal("FATAL: The application binary appears to be running setuid, this is a security hole.");
# endif // Q_OS_UNIX
# if defined(Q_OS_UNIX)
qt_application_thread_id = QThread::currentThreadId();
# endif
QThread *cur = QThread::currentThread(); // note: this may end up setting theMainThread!
if (cur != theMainThread)
qWarning("WARNING: QApplication was not created in the main() thread.");