Debugger: Remove unused code in WatchModel

Change-Id: I34464bf435dcf87eb375b8c1e79e29ad4f8050b4
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
hjk
2015-01-29 21:59:18 +01:00
parent 63eac4385a
commit f5af022aaa

View File

@@ -201,7 +201,6 @@ public:
bool setData(const QModelIndex &idx, const QVariant &value, int role); bool setData(const QModelIndex &idx, const QVariant &value, int role);
void invalidateAll(const QModelIndex &parentIndex = QModelIndex());
void insertDataItem(const WatchData &data, bool destructive); void insertDataItem(const WatchData &data, bool destructive);
void reinsertAllData(); void reinsertAllData();
void reinsertAllDataHelper(WatchItem *item, QList<WatchData> *data); void reinsertAllDataHelper(WatchItem *item, QList<WatchData> *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. // Truncate value for item view, maintaining quotes.
static QString truncateValue(QString v) static QString truncateValue(QString v)
{ {
@@ -1759,10 +1750,7 @@ void WatchHandler::scheduleResetLocation()
void WatchHandler::resetLocation() void WatchHandler::resetLocation()
{ {
if (m_resetLocationScheduled) {
m_resetLocationScheduled = false; m_resetLocationScheduled = false;
//m_model->invalidateAll(); FIXME
}
} }
void WatchHandler::setCurrentItem(const QByteArray &iname) void WatchHandler::setCurrentItem(const QByteArray &iname)