From 21d9272a3e9089d77f5c8e7c6e2114c335639c0c Mon Sep 17 00:00:00 2001 From: Jeremy Rubin Date: Tue, 21 Jan 2020 16:24:42 -0800 Subject: [PATCH] Get rid of unused functions CTxMemPool::GetMemPoolChildren, CTxMemPool::GetMemPoolParents --- src/txmempool.cpp | 12 ------------ src/txmempool.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 80da273ea33c5..1ee514f5a7099 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -979,18 +979,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 887125da58f02..ec4d9e2126b6e 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -550,8 +550,6 @@ class CTxMemPool typedef std::set setEntries; typedef std::vector vecEntries; - 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: