From 049003fe68a4183f6f20da16f58f10079d1e02df Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Wed, 23 Mar 2022 14:38:14 -0400 Subject: coinselection: Remove COutput operators == and != These operators are used only by the tests in std::mismatch. As std::mismatch can take a binary predicate, we can use a lambda that achieves the same instead. --- src/wallet/coinselection.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/wallet/coinselection.h') diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h index ff85dd5fe2..43c37cbad7 100644 --- a/src/wallet/coinselection.h +++ b/src/wallet/coinselection.h @@ -84,14 +84,6 @@ public: bool operator<(const COutput& rhs) const { return outpoint < rhs.outpoint; } - - bool operator!=(const COutput& rhs) const { - return outpoint != rhs.outpoint; - } - - bool operator==(const COutput& rhs) const { - return outpoint == rhs.outpoint; - } }; /** Parameters for one iteration of Coin Selection. */ -- cgit v1.2.3