diff options
author | Jeremy Rubin <j@rubin.io> | 2020-01-21 16:24:42 -0800 |
---|---|---|
committer | Jeremy Rubin <j@rubin.io> | 2020-09-04 09:46:44 -0700 |
commit | 296be8f58e02b39a58f017c52294aceed22c3ffd (patch) | |
tree | 77fbf2801efa44539fb9425acf18ffe46aa564db | |
parent | 46d955d196043cc297834baeebce31ff778dff80 (diff) |
Get rid of unused functions CTxMemPool::GetMemPoolChildren, CTxMemPool::GetMemPoolParents
-rw-r--r-- | src/txmempool.cpp | 12 | ||||
-rw-r--r-- | src/txmempool.h | 2 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index e24d8d7b98..6a525c97db 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -993,18 +993,6 @@ void CTxMemPool::UpdateParent(txiter entry, txiter parent, bool add) } } -const CTxMemPoolEntry::Parents & CTxMemPool::GetMemPoolParents(txiter entry) const -{ - assert(entry != mapTx.end()); - return entry->GetMemPoolParentsConst(); -} - -const CTxMemPoolEntry::Children & CTxMemPool::GetMemPoolChildren(txiter entry) const -{ - assert(entry != mapTx.end()); - return entry->GetMemPoolChildrenConst(); -} - CFeeRate CTxMemPool::GetMinFee(size_t sizelimit) const { LOCK(cs); if (!blockSinceLastRollingFeeBump || rollingMinimumFeeRate == 0) diff --git a/src/txmempool.h b/src/txmempool.h index 9417902120..8764bbcf13 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -576,8 +576,6 @@ public: typedef std::set<txiter, CompareIteratorByHash> setEntries; - const CTxMemPoolEntry::Parents & GetMemPoolParents(txiter entry) const EXCLUSIVE_LOCKS_REQUIRED(cs); - const CTxMemPoolEntry::Children & GetMemPoolChildren(txiter entry) const EXCLUSIVE_LOCKS_REQUIRED(cs); uint64_t CalculateDescendantMaximum(txiter entry) const EXCLUSIVE_LOCKS_REQUIRED(cs); private: typedef std::map<txiter, setEntries, CompareIteratorByHash> cacheMap; |