From d2796546a4d416890ae0a13d83bd977c38388cf2 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 26 Jul 2019 12:48:11 +0200 Subject: [PATCH] ProjectExplorer: Remove unused BuildStepList::steps(...) overload Change-Id: Idf0aa783c4492eab06f830788df7a480f85c8150 Reviewed-by: Christian Kandeler --- src/plugins/projectexplorer/buildsteplist.cpp | 5 ----- src/plugins/projectexplorer/buildsteplist.h | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) 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) {