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>
This commit is contained in:
hjk
2018-08-30 10:11:06 +02:00
parent 34840e8088
commit a6719ed0ff
3 changed files with 0 additions and 19 deletions

View File

@@ -378,7 +378,6 @@ public:
{ {
m_stackHandler.scheduleResetLocation(); m_stackHandler.scheduleResetLocation();
m_watchHandler.scheduleResetLocation(); m_watchHandler.scheduleResetLocation();
m_threadsHandler.scheduleResetLocation();
m_disassemblerAgent.scheduleResetLocation(); m_disassemblerAgent.scheduleResetLocation();
m_locationTimer.setSingleShot(true); m_locationTimer.setSingleShot(true);
m_locationTimer.start(80); m_locationTimer.start(80);
@@ -391,7 +390,6 @@ public:
m_locationMark.reset(); m_locationMark.reset();
m_stackHandler.resetLocation(); m_stackHandler.resetLocation();
m_watchHandler.resetLocation(); m_watchHandler.resetLocation();
m_threadsHandler.resetLocation();
m_disassemblerAgent.resetLocation(); m_disassemblerAgent.resetLocation();
m_toolTipManager.resetLocation(); m_toolTipManager.resetLocation();
} }

View File

@@ -398,19 +398,6 @@ void ThreadsHandler::updateThreads(const GdbMi &data)
m_currentThread = threadForId(currentId); m_currentThread = threadForId(currentId);
} }
void ThreadsHandler::scheduleResetLocation()
{
m_resetLocationScheduled = true;
}
void ThreadsHandler::resetLocation()
{
if (m_resetLocationScheduled) {
m_resetLocationScheduled = false;
layoutChanged();
}
}
QAbstractItemModel *ThreadsHandler::model() QAbstractItemModel *ThreadsHandler::model()
{ {
return this; return this;

View File

@@ -97,9 +97,6 @@ public:
void notifyRunning(const QString &id); void notifyRunning(const QString &id);
void notifyStopped(const QString &id); void notifyStopped(const QString &id);
void resetLocation();
void scheduleResetLocation();
private: private:
void sort(int column, Qt::SortOrder order) override; void sort(int column, Qt::SortOrder order) override;
QVariant data(const QModelIndex &index, int role) const override; QVariant data(const QModelIndex &index, int role) const override;
@@ -107,7 +104,6 @@ private:
DebuggerEngine *m_engine; DebuggerEngine *m_engine;
Thread m_currentThread; Thread m_currentThread;
bool m_resetLocationScheduled = false;
QHash<QString, QString> m_pidForGroupId; QHash<QString, QString> m_pidForGroupId;
}; };