From 85dae5f8a48e904ce4ca3b1be2df5f2a49460ffd Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Fri, 15 Oct 2021 00:04:06 +0100 Subject: [PATCH] Remove unused method --- src/blackmisc/sequence.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/blackmisc/sequence.h b/src/blackmisc/sequence.h index 2923c4975..480973918 100644 --- a/src/blackmisc/sequence.h +++ b/src/blackmisc/sequence.h @@ -410,14 +410,6 @@ namespace BlackMisc 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 - 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. void replaceOrAdd(const T &original, const T &replacement) {