Skip to content

Commit

Permalink
remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
gr0vity-dev committed Feb 5, 2024
1 parent ea9411e commit f579347
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions nano/node/confirmation_height_unbounded.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<nano::mutex> 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<nano::mutex> guard (block_cache_mutex);
Expand Down
1 change: 0 additions & 1 deletion nano/node/confirmation_height_unbounded.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class confirmation_height_unbounded final
void process (std::shared_ptr<nano::block> 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:
Expand Down

0 comments on commit f579347

Please sign in to comment.