summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-08-30 10:11:06 +0200
committerhjk <hjk@qt.io>2018-08-30 13:31:24 +0000
commita6719ed0ffcab1daa2995b0ebadc0f846e52ea0f (patch)
tree211d4830f2064fad18da82e59dc388ca8d822dcc
parent34840e8088ee02a85e918e39328b1eeeb4d9dc05 (diff)
downloadqt-creator-a6719ed0ffcab1daa2995b0ebadc0f846e52ea0f.tar.gz
Debugger: Remove thread handler location reset handling
Has not been needed since Utils::TreeModel was used. Change-Id: Iff60a631e306e9756f83d70eacf19c2fe49bcedd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/plugins/debugger/debuggerengine.cpp2
-rw-r--r--src/plugins/debugger/threadshandler.cpp13
-rw-r--r--src/plugins/debugger/threadshandler.h4
3 files changed, 0 insertions, 19 deletions
diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp
index 9d65ae466f..b658a94f13 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 8148cf3f1d..958a41ebd5 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 1cae5cfc26..8801c52116 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<QString, QString> m_pidForGroupId;
};