diff --git a/src/plugins/projectexplorer/buildsteplist.cpp b/src/plugins/projectexplorer/buildsteplist.cpp index 3b4ce596a48..fb22a85c7db 100644 --- a/src/plugins/projectexplorer/buildsteplist.cpp +++ b/src/plugins/projectexplorer/buildsteplist.cpp @@ -140,11 +140,6 @@ QList BuildStepList::steps() const return m_steps; } -QList BuildStepList::steps(const std::function &filter) const -{ - return Utils::filtered(steps(), filter); -} - void BuildStepList::insertStep(int position, BuildStep *step) { m_steps.insert(position, step); diff --git a/src/plugins/projectexplorer/buildsteplist.h b/src/plugins/projectexplorer/buildsteplist.h index 59be5a17306..c71217eccd9 100644 --- a/src/plugins/projectexplorer/buildsteplist.h +++ b/src/plugins/projectexplorer/buildsteplist.h @@ -47,7 +47,7 @@ public: void clear(); QList steps() const; - QList steps(const std::function &filter) const; + template BS *firstOfType() { BS *bs = nullptr; for (int i = 0; i < count(); ++i) {