diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2022-12-13 13:07:01 +0100 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2022-12-13 12:57:17 +0100 |
commit | fa818e103c0ddb515f29ae9ce8de44931e12e69e (patch) | |
tree | 1bb6d6a165f932011c292b50529080e0687913d6 /src/txmempool.cpp | |
parent | 6061eb6564105ad54703a7cf3282590d0e1a7f28 (diff) | |
download | bitcoin-fa818e103c0ddb515f29ae9ce8de44931e12e69e.tar.xz |
txmempool: Remove unused clear() member function
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r-- | src/txmempool.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 12e2d5f224..b685c79b34 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -389,7 +389,6 @@ CTxMemPool::CTxMemPool(const Options& opts) m_full_rbf{opts.full_rbf}, m_limits{opts.limits} { - _clear(); //lock free clear } bool CTxMemPool::isSpent(const COutPoint& outpoint) const @@ -627,26 +626,6 @@ void CTxMemPool::removeForBlock(const std::vector<CTransactionRef>& vtx, unsigne blockSinceLastRollingFeeBump = true; } -void CTxMemPool::_clear() -{ - vTxHashes.clear(); - mapTx.clear(); - mapNextTx.clear(); - totalTxSize = 0; - m_total_fee = 0; - cachedInnerUsage = 0; - lastRollingFeeUpdate = GetTime(); - blockSinceLastRollingFeeBump = false; - rollingMinimumFeeRate = 0; - ++nTransactionsUpdated; -} - -void CTxMemPool::clear() -{ - LOCK(cs); - _clear(); -} - void CTxMemPool::check(const CCoinsViewCache& active_coins_tip, int64_t spendheight) const { if (m_check_ratio == 0) return; |