From f57934747d1c491875a572802a6d0a3807e6efb5 Mon Sep 17 00:00:00 2001 From: gr0vity-dev Date: Mon, 5 Feb 2024 16:45:19 +0100 Subject: [PATCH] remove unused method --- nano/node/confirmation_height_unbounded.cpp | 9 +-------- nano/node/confirmation_height_unbounded.hpp | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/nano/node/confirmation_height_unbounded.cpp b/nano/node/confirmation_height_unbounded.cpp index b6ef5357e9..78e0f19f87 100644 --- a/nano/node/confirmation_height_unbounded.cpp +++ b/nano/node/confirmation_height_unbounded.cpp @@ -464,7 +464,7 @@ void nano::confirmation_height_unbounded::clear_process_vars () { const auto & block_hash = pair.first; recently_confirmed.push_back (block_hash); - } + } block_cache.clear (); // Ensure recently_confirmed doesn't exceed max_recently_confirmed @@ -481,13 +481,6 @@ bool nano::confirmation_height_unbounded::has_iterated_over_block (nano::block_h return block_cache.count (hash_a) == 1; } -bool nano::confirmation_height_unbounded::is_recently_confirmed (nano::block_hash const & hash_a) const -{ - nano::lock_guard guard (block_cache_mutex); - auto result = std::find (recently_confirmed.begin (), recently_confirmed.end (), hash_a) != recently_confirmed.end (); - return result; -} - bool nano::confirmation_height_unbounded::has_iterated_or_confirmed (nano::block_hash const & hash_a) const { nano::lock_guard guard (block_cache_mutex); diff --git a/nano/node/confirmation_height_unbounded.hpp b/nano/node/confirmation_height_unbounded.hpp index b30587f13e..9672017997 100644 --- a/nano/node/confirmation_height_unbounded.hpp +++ b/nano/node/confirmation_height_unbounded.hpp @@ -26,7 +26,6 @@ class confirmation_height_unbounded final void process (std::shared_ptr original_block); void cement_blocks (nano::write_guard &); bool has_iterated_over_block (nano::block_hash const &) const; - bool is_recently_confirmed (nano::block_hash const &) const; bool has_iterated_or_confirmed (nano::block_hash const &) const; private: