From f5af022aaa139366de8441d894ae311c4d1d5419 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 29 Jan 2015 21:59:18 +0100 Subject: [PATCH] Debugger: Remove unused code in WatchModel Change-Id: I34464bf435dcf87eb375b8c1e79e29ad4f8050b4 Reviewed-by: hjk --- src/plugins/debugger/watchhandler.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 6fd7721d8f5..68381aed0f9 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -201,7 +201,6 @@ public: bool setData(const QModelIndex &idx, const QVariant &value, int role); - void invalidateAll(const QModelIndex &parentIndex = QModelIndex()); void insertDataItem(const WatchData &data, bool destructive); void reinsertAllData(); void reinsertAllDataHelper(WatchItem *item, QList *data); @@ -633,14 +632,6 @@ void WatchItem::fetchMore() } } -void WatchModel::invalidateAll(const QModelIndex &parentIndex) -{ - QModelIndex idx1 = index(0, 0, parentIndex); - QModelIndex idx2 = index(rowCount(parentIndex) - 1, columnCount(parentIndex) - 1, parentIndex); - if (idx1.isValid() && idx2.isValid()) - emit dataChanged(idx1, idx2); -} - // Truncate value for item view, maintaining quotes. static QString truncateValue(QString v) { @@ -1759,10 +1750,7 @@ void WatchHandler::scheduleResetLocation() void WatchHandler::resetLocation() { - if (m_resetLocationScheduled) { - m_resetLocationScheduled = false; - //m_model->invalidateAll(); FIXME - } + m_resetLocationScheduled = false; } void WatchHandler::setCurrentItem(const QByteArray &iname)