diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-09-13 16:51:13 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-09-16 01:07:33 +0200 |
commit | 585cb3489758505ce65479acd216ad347382faf3 (patch) | |
tree | d714a7c8ad8483eef9f70549803f3b33bb310ac4 /src/qml/qml/ftw | |
parent | 2a382fd7361aa3b278ad886e4971125597abc2e8 (diff) |
QQmlThread: remove support for unused startup/shudownThread
We can do all the necessary work in the ctor and dtor.
Change-Id: I64597022b1bcbb9604a590b188e67e1af59070c2
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/qml/qml/ftw')
-rw-r--r-- | src/qml/qml/ftw/qqmlthread.cpp | 12 | ||||
-rw-r--r-- | src/qml/qml/ftw/qqmlthread_p.h | 4 |
2 files changed, 0 insertions, 16 deletions
diff --git a/src/qml/qml/ftw/qqmlthread.cpp b/src/qml/qml/ftw/qqmlthread.cpp index 2a22f0cf1d..be0e74ed13 100644 --- a/src/qml/qml/ftw/qqmlthread.cpp +++ b/src/qml/qml/ftw/qqmlthread.cpp @@ -116,9 +116,7 @@ void QQmlThreadPrivate::run() unlock(); - q->startupThread(); exec(); - q->shutdownThread(); } void QQmlThreadPrivate::mainEvent() @@ -269,16 +267,6 @@ QThread *QQmlThread::thread() const return const_cast<QThread *>(static_cast<const QThread *>(d)); } -// Called when the thread starts. Do startup stuff in here. -void QQmlThread::startupThread() -{ -} - -// Called when the thread shuts down. Do cleanup in here. -void QQmlThread::shutdownThread() -{ -} - void QQmlThread::internalCallMethodInThread(Message *message) { #if !QT_CONFIG(thread) diff --git a/src/qml/qml/ftw/qqmlthread_p.h b/src/qml/qml/ftw/qqmlthread_p.h index ef2bd9dab5..51f64ce750 100644 --- a/src/qml/qml/ftw/qqmlthread_p.h +++ b/src/qml/qml/ftw/qqmlthread_p.h @@ -81,10 +81,6 @@ public: void waitForNextMessage(); -protected: - virtual void startupThread(); - virtual void shutdownThread(); - private: friend class QQmlThreadPrivate; |