diff --git a/nano/node/vote_cache.cpp b/nano/node/vote_cache.cpp index 3b3e2d978e..91d4061067 100644 --- a/nano/node/vote_cache.cpp +++ b/nano/node/vote_cache.cpp @@ -276,21 +276,8 @@ std::unique_ptr nano::vote_cache::collect_contai { nano::lock_guard guard{ mutex }; - auto count_unique_votes = [this] () { - std::unordered_set> votes; - for (auto const & entry : cache) - { - for (auto const & vote : entry.votes ()) - { - votes.insert (vote); - } - } - return votes.size (); - }; - auto composite = std::make_unique (name); composite->add_component (std::make_unique (container_info{ "cache", cache.size (), sizeof (ordered_cache::value_type) })); - composite->add_component (std::make_unique (container_info{ "unique", count_unique_votes (), sizeof (nano::vote) })); return composite; }