From a6719ed0ffcab1daa2995b0ebadc0f846e52ea0f Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 30 Aug 2018 10:11:06 +0200 Subject: [PATCH] Debugger: Remove thread handler location reset handling Has not been needed since Utils::TreeModel was used. Change-Id: Iff60a631e306e9756f83d70eacf19c2fe49bcedd Reviewed-by: Christian Stenger --- src/plugins/debugger/debuggerengine.cpp | 2 -- src/plugins/debugger/threadshandler.cpp | 13 ------------- src/plugins/debugger/threadshandler.h | 4 ---- 3 files changed, 19 deletions(-) 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; };