validation: Remove ResetCoinsViews

Now that its only callsite has been moved to the destructor, let the
smart pointer do its thing.
This commit is contained in:
TheCharlatan 2024-11-27 11:02:54 +01:00
parent 9bf6df763d
commit cd618e2020
No known key found for this signature in database
GPG key ID: 9B79B45691DB4173
2 changed files with 0 additions and 4 deletions

View file

@ -6288,7 +6288,6 @@ ChainstateManager::~ChainstateManager()
for (Chainstate* chainstate : GetAll()) {
if (chainstate->CanFlushToDisk()) {
chainstate->ForceFlushStateToDisk();
chainstate->ResetCoinsViews();
}
}

View file

@ -639,9 +639,6 @@ public:
return Assert(m_coins_views)->m_catcherview;
}
//! Destructs all objects related to accessing the UTXO set.
void ResetCoinsViews() { m_coins_views.reset(); }
//! Does this chainstate have a UTXO set attached?
bool HasCoinsViews() const { return (bool)m_coins_views; }