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:
Ulf Hermann
2015-11-11 11:44:55 +01:00
parent 07241006ee
commit 35ce8f50df
4 changed files with 0 additions and 43 deletions

View File

@@ -194,24 +194,6 @@ void QmlProfilerTraceView::selectByTypeId(int typeId)
QMetaObject::invokeMethod(rootObject, "selectByTypeId", Q_ARG(QVariant,QVariant(typeId)));
}
void QmlProfilerTraceView::selectBySourceLocation(const QString &filename, int line, int column)
{
QQuickItem *rootObject = d->m_mainView->rootObject();
if (!rootObject)
return;
for (int modelIndex = 0; modelIndex < d->m_modelProxy->modelCount(); ++modelIndex) {
int typeId = d->m_modelProxy->model(modelIndex)->selectionIdForLocation(filename, line,
column);
if (typeId != -1) {
QMetaObject::invokeMethod(rootObject, "selectBySelectionId",
Q_ARG(QVariant,QVariant(modelIndex)),
Q_ARG(QVariant,QVariant(typeId)));
return;
}
}
}
void QmlProfilerTraceView::selectByEventIndex(int modelId, int eventIndex)
{
QQuickItem *rootObject = d->m_mainView->rootObject();