mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
Remove unused method
This commit is contained in:
@@ -410,14 +410,6 @@ namespace BlackMisc
|
|||||||
return replaceIf(BlackMisc::Predicates::MemberEqual(key1, value1), replacement);
|
return replaceIf(BlackMisc::Predicates::MemberEqual(key1, value1), replacement);
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Replace elements for which a given predicate returns true. If there is no match, push the new element on the end.
|
|
||||||
template <class Predicate>
|
|
||||||
void replaceOrAdd(Predicate p, const T &replacement)
|
|
||||||
{
|
|
||||||
if (this->containsBy(p)) { replaceIf(p, replacement); }
|
|
||||||
else { push_back(replacement); }
|
|
||||||
}
|
|
||||||
|
|
||||||
//! Replace elements matching the given element. If there is no match, push the new element on the end.
|
//! Replace elements matching the given element. If there is no match, push the new element on the end.
|
||||||
void replaceOrAdd(const T &original, const T &replacement)
|
void replaceOrAdd(const T &original, const T &replacement)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user