summaryrefslogtreecommitdiff
path: root/Source/cmAlgorithms.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-01-02 17:53:27 +0100
committerMarc Chevrier <marc.chevrier@gmail.com>2020-01-09 11:19:20 +0100
commit968477517edb030cee7f9160286b31d4cda4a516 (patch)
tree855e1bebd0de9caba303a98bd4c109f6b5ecfa1f /Source/cmAlgorithms.h
parent348b60d19deec458e2300949900f682002aecf44 (diff)
downloadcmake-968477517edb030cee7f9160286b31d4cda4a516.tar.gz
Refactoring: suppress cmEraseIf in favor of cm::erase_if
Diffstat (limited to 'Source/cmAlgorithms.h')
-rw-r--r--Source/cmAlgorithms.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/Source/cmAlgorithms.h b/Source/cmAlgorithms.h
index a179acb89f..3b0a223607 100644
--- a/Source/cmAlgorithms.h
+++ b/Source/cmAlgorithms.h
@@ -37,12 +37,6 @@ FwdIt cmRotate(FwdIt first, FwdIt middle, FwdIt last)
return first;
}
-template <typename Container, typename Predicate>
-void cmEraseIf(Container& cont, Predicate pred)
-{
- cont.erase(std::remove_if(cont.begin(), cont.end(), pred), cont.end());
-}
-
template <typename Range, typename Key>
auto cmContainsImpl(Range const& range, Key const& key, cmOverloadPriority<2>)
-> decltype(range.exists(key))