diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-03-23 14:38:14 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-03-23 15:01:39 -0400 |
commit | 049003fe68a4183f6f20da16f58f10079d1e02df (patch) | |
tree | 87f29f6614fd8d85709539c4610197f530e7fe3a /src/wallet/coinselection.h | |
parent | f6c39c6adb6cbf9c87f04d3d667701905ef5c0a0 (diff) | |
download | bitcoin-049003fe68a4183f6f20da16f58f10079d1e02df.tar.xz |
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.
Diffstat (limited to 'src/wallet/coinselection.h')
-rw-r--r-- | src/wallet/coinselection.h | 8 |
1 files changed, 0 insertions, 8 deletions
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. */ |