From 09908655e12b4c410d1f56007152642b79aaa689 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 29 Apr 2016 12:48:29 +0200 Subject: [PATCH] QmlProfiler: Remove acceptedEventTypes property from flame graph model It is unused. Change-Id: I4c2cb02f21ca564d5b783c46b6cce7c4ac8223e5 Reviewed-by: Christian Kandeler --- src/plugins/qmlprofiler/flamegraphmodel.cpp | 13 ------------- src/plugins/qmlprofiler/flamegraphmodel.h | 3 --- 2 files changed, 16 deletions(-) diff --git a/src/plugins/qmlprofiler/flamegraphmodel.cpp b/src/plugins/qmlprofiler/flamegraphmodel.cpp index 1d3ab62dc9a..34a21562cef 100644 --- a/src/plugins/qmlprofiler/flamegraphmodel.cpp +++ b/src/plugins/qmlprofiler/flamegraphmodel.cpp @@ -58,19 +58,6 @@ FlameGraphModel::FlameGraphModel(QmlProfilerModelManager *modelManager, modelManager->announceFeatures(m_modelId, QmlDebug::Constants::QML_JS_RANGE_FEATURES); } -void FlameGraphModel::setEventTypeAccepted(QmlDebug::RangeType type, bool accepted) -{ - if (accepted && !m_acceptedTypes.contains(type)) - m_acceptedTypes << type; - else if (!accepted && m_acceptedTypes.contains(type)) - m_acceptedTypes.removeOne(type); -} - -bool FlameGraphModel::eventTypeAccepted(QmlDebug::RangeType type) const -{ - return m_acceptedTypes.contains(type); -} - void FlameGraphModel::clear() { m_modelManager->modelProxyCountUpdated(m_modelId, 0, 1); diff --git a/src/plugins/qmlprofiler/flamegraphmodel.h b/src/plugins/qmlprofiler/flamegraphmodel.h index ba5f10679fe..9619d7a5e84 100644 --- a/src/plugins/qmlprofiler/flamegraphmodel.h +++ b/src/plugins/qmlprofiler/flamegraphmodel.h @@ -73,9 +73,6 @@ public: FlameGraphModel(QmlProfilerModelManager *modelManager, QObject *parent = 0); - void setEventTypeAccepted(QmlDebug::RangeType type, bool accepted); - bool eventTypeAccepted(QmlDebug::RangeType) const; - QModelIndex index(int row, int column, const QModelIndex &parent) const override; QModelIndex parent(const QModelIndex &child) const override; Q_INVOKABLE int rowCount(const QModelIndex &parent = QModelIndex()) const override;