diff --git a/src/plugins/qmlprofiler/flamegraphmodel.cpp b/src/plugins/qmlprofiler/flamegraphmodel.cpp
index f9d0f365f47aac7b97c25a6855699272612f5235..7d9c2d41350b5bc2b0d026a40845291b89b797bf 100644
--- a/src/plugins/qmlprofiler/flamegraphmodel.cpp
+++ b/src/plugins/qmlprofiler/flamegraphmodel.cpp
@@ -51,7 +51,6 @@ FlameGraphModel::FlameGraphModel(QmlProfilerModelManager *modelManager,
             this, [this](int typeId, int, int){loadNotes(typeId, true);});
     m_modelId = modelManager->registerModelProxy();
 
-    m_acceptedTypes << Compiling << Creating << Binding << HandlingSignal << Javascript;
     modelManager->announceFeatures(Constants::QML_JS_RANGE_FEATURES,
                                    [this](const QmlEvent &event, const QmlEventType &type) {
         loadEvent(event, type);
@@ -95,8 +94,7 @@ void FlameGraphModel::loadNotes(int typeIndex, bool emitSignal)
 
 void FlameGraphModel::loadEvent(const QmlEvent &event, const QmlEventType &type)
 {
-    if (!m_acceptedTypes.contains(type.rangeType))
-        return;
+    Q_UNUSED(type);
 
     if (m_stackBottom.children.isEmpty())
         beginResetModel();
@@ -132,13 +130,12 @@ void FlameGraphModel::onModelManagerStateChanged()
 static QString nameForType(RangeType typeNumber)
 {
     switch (typeNumber) {
-    case Painting: return FlameGraphModel::tr("Paint");
     case Compiling: return FlameGraphModel::tr("Compile");
     case Creating: return FlameGraphModel::tr("Create");
     case Binding: return FlameGraphModel::tr("Binding");
     case HandlingSignal: return FlameGraphModel::tr("Signal");
     case Javascript: return FlameGraphModel::tr("JavaScript");
-    default: return QString();
+    default: Q_UNREACHABLE();
     }
 }
 
diff --git a/src/plugins/qmlprofiler/flamegraphmodel.h b/src/plugins/qmlprofiler/flamegraphmodel.h
index 3b130faaa1c4929764523491ebdb5188fd1dbc88..b01cd5fa233441fe3b142fb29cd0413530f7f958 100644
--- a/src/plugins/qmlprofiler/flamegraphmodel.h
+++ b/src/plugins/qmlprofiler/flamegraphmodel.h
@@ -108,7 +108,6 @@ private:
     int m_modelId;
     QmlProfilerModelManager *m_modelManager;
 
-    QList<RangeType> m_acceptedTypes;
     QSet<int> m_typeIdsWithNotes;
 };