diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp index 9d65ae466fd..b658a94f13e 100644 --- a/src/plugins/debugger/debuggerengine.cpp +++ b/src/plugins/debugger/debuggerengine.cpp @@ -378,7 +378,6 @@ public: { m_stackHandler.scheduleResetLocation(); m_watchHandler.scheduleResetLocation(); - m_threadsHandler.scheduleResetLocation(); m_disassemblerAgent.scheduleResetLocation(); m_locationTimer.setSingleShot(true); m_locationTimer.start(80); @@ -391,7 +390,6 @@ public: m_locationMark.reset(); m_stackHandler.resetLocation(); m_watchHandler.resetLocation(); - m_threadsHandler.resetLocation(); m_disassemblerAgent.resetLocation(); m_toolTipManager.resetLocation(); } diff --git a/src/plugins/debugger/threadshandler.cpp b/src/plugins/debugger/threadshandler.cpp index 8148cf3f1d5..958a41ebd5c 100644 --- a/src/plugins/debugger/threadshandler.cpp +++ b/src/plugins/debugger/threadshandler.cpp @@ -398,19 +398,6 @@ void ThreadsHandler::updateThreads(const GdbMi &data) m_currentThread = threadForId(currentId); } -void ThreadsHandler::scheduleResetLocation() -{ - m_resetLocationScheduled = true; -} - -void ThreadsHandler::resetLocation() -{ - if (m_resetLocationScheduled) { - m_resetLocationScheduled = false; - layoutChanged(); - } -} - QAbstractItemModel *ThreadsHandler::model() { return this; diff --git a/src/plugins/debugger/threadshandler.h b/src/plugins/debugger/threadshandler.h index 1cae5cfc265..8801c521167 100644 --- a/src/plugins/debugger/threadshandler.h +++ b/src/plugins/debugger/threadshandler.h @@ -97,9 +97,6 @@ public: void notifyRunning(const QString &id); void notifyStopped(const QString &id); - void resetLocation(); - void scheduleResetLocation(); - private: void sort(int column, Qt::SortOrder order) override; QVariant data(const QModelIndex &index, int role) const override; @@ -107,7 +104,6 @@ private: DebuggerEngine *m_engine; Thread m_currentThread; - bool m_resetLocationScheduled = false; QHash m_pidForGroupId; };