forked from qt-creator/qt-creator
QmlProfiler: remove dead code
We never propagate a selection by source location. Change-Id: I4594b88080bd1834572c0087db0397bc08a81d70 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -345,11 +345,6 @@ void QmlProfilerEventsWidget::selectByTypeId(int typeIndex) const
|
||||
d->m_eventTree->selectType(typeIndex);
|
||||
}
|
||||
|
||||
void QmlProfilerEventsWidget::selectBySourceLocation(const QString &filename, int line, int column)
|
||||
{
|
||||
d->m_eventTree->selectByLocation(filename, line, column);
|
||||
}
|
||||
|
||||
void QmlProfilerEventsWidget::onVisibleFeaturesChanged(quint64 features)
|
||||
{
|
||||
for (int i = 0; i < MaximumRangeType; ++i) {
|
||||
@@ -780,23 +775,6 @@ void QmlProfilerEventsMainView::selectType(int typeIndex)
|
||||
}
|
||||
}
|
||||
|
||||
void QmlProfilerEventsMainView::selectByLocation(const QString &filename, int line, int column)
|
||||
{
|
||||
if (d->m_preventSelectBounce)
|
||||
return;
|
||||
|
||||
for (int i=0; i<d->m_model->rowCount(); i++) {
|
||||
QStandardItem *infoItem = d->m_model->item(i, 0);
|
||||
if (infoItem->data(FilenameRole).toString() == filename &&
|
||||
infoItem->data(LineRole).toInt() == line &&
|
||||
(column == -1 ||
|
||||
infoItem->data(ColumnRole).toInt() == column)) {
|
||||
selectItem(infoItem);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QModelIndex QmlProfilerEventsMainView::selectedModelIndex() const
|
||||
{
|
||||
QModelIndexList sel = selectedIndexes();
|
||||
|
||||
Reference in New Issue
Block a user