summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qthread_p.h
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-09-22 10:50:15 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2021-09-22 15:40:30 +0200
commitb7f20193573d2a5ae7cb765468023d97dfc37420 (patch)
treeea18546b14eedb81d84d4e09c783863792f892c4 /src/corelib/thread/qthread_p.h
parentfe46cd59ce3c961d714b303d7d5484cca8864247 (diff)
QThreadPrivate: Remove threadForId
The thread build variant is not implemented; the no-thread one simply returns the current thread. As this has no utility at best and misleading at worst, remove those functions. Change-Id: I93ee45ae7d55e3a7ad1f03168b14149a5d4c9253 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/thread/qthread_p.h')
-rw-r--r--src/corelib/thread/qthread_p.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/corelib/thread/qthread_p.h b/src/corelib/thread/qthread_p.h
index f4c60969ac..50d86ab51a 100644
--- a/src/corelib/thread/qthread_p.h
+++ b/src/corelib/thread/qthread_p.h
@@ -166,8 +166,6 @@ public:
uint stackSize;
QThread::Priority priority;
- static QThread *threadForId(int id);
-
#ifdef Q_OS_UNIX
QWaitCondition thread_done;
@@ -218,7 +216,6 @@ public:
bool running = false;
static void setCurrentThread(QThread *) { }
- static QThread *threadForId(int) { return QThread::currentThread(); }
static QAbstractEventDispatcher *createEventDispatcher(QThreadData *data);
void ref() {}