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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user