From e5d701d4a389ef50a14c32d574d71f77f3ddf11f Mon Sep 17 00:00:00 2001 From: selsta Date: Sat, 11 Jul 2026 02:47:58 +0200 Subject: [PATCH] tx_pool: remove redundant hashCompare comparator --- src/cryptonote_core/tx_pool.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/cryptonote_core/tx_pool.h b/src/cryptonote_core/tx_pool.h index 2cba87d06..e78b0eff9 100644 --- a/src/cryptonote_core/tx_pool.h +++ b/src/cryptonote_core/tx_pool.h @@ -78,18 +78,9 @@ namespace cryptonote } }; - class hashCompare - { - public: - bool operator()(const crypto::hash& a, const crypto::hash& b) const - { - return memcmp(a.data, b.data, sizeof(crypto::hash)) < 0; - } - }; - //! container for sorting transactions by fee per unit size typedef boost::bimap, txFeeCompare>, - boost::bimaps::set_of> sorted_tx_container; + boost::bimaps::set_of> sorted_tx_container; /**