Skip to content

Commit 296be8f

Browse files
committed
Get rid of unused functions CTxMemPool::GetMemPoolChildren, CTxMemPool::GetMemPoolParents
1 parent 46d955d commit 296be8f

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/txmempool.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -993,18 +993,6 @@ void CTxMemPool::UpdateParent(txiter entry, txiter parent, bool add)
993993
}
994994
}
995995

996-
const CTxMemPoolEntry::Parents & CTxMemPool::GetMemPoolParents(txiter entry) const
997-
{
998-
assert(entry != mapTx.end());
999-
return entry->GetMemPoolParentsConst();
1000-
}
1001-
1002-
const CTxMemPoolEntry::Children & CTxMemPool::GetMemPoolChildren(txiter entry) const
1003-
{
1004-
assert(entry != mapTx.end());
1005-
return entry->GetMemPoolChildrenConst();
1006-
}
1007-
1008996
CFeeRate CTxMemPool::GetMinFee(size_t sizelimit) const {
1009997
LOCK(cs);
1010998
if (!blockSinceLastRollingFeeBump || rollingMinimumFeeRate == 0)

src/txmempool.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,6 @@ class CTxMemPool
576576

577577
typedef std::set<txiter, CompareIteratorByHash> setEntries;
578578

579-
const CTxMemPoolEntry::Parents & GetMemPoolParents(txiter entry) const EXCLUSIVE_LOCKS_REQUIRED(cs);
580-
const CTxMemPoolEntry::Children & GetMemPoolChildren(txiter entry) const EXCLUSIVE_LOCKS_REQUIRED(cs);
581579
uint64_t CalculateDescendantMaximum(txiter entry) const EXCLUSIVE_LOCKS_REQUIRED(cs);
582580
private:
583581
typedef std::map<txiter, setEntries, CompareIteratorByHash> cacheMap;

0 commit comments

Comments
 (0)