Skip to content

Commit b20a662

Browse files
committed
[Cleanup] Remove unused CCoinsViewCache::IsOutputAvailable
1 parent ea82855 commit b20a662

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/coins.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,6 @@ bool CCoinsViewCache::HaveInputs(const CTransaction& tx) const
328328
return true;
329329
}
330330

331-
bool CCoinsViewCache::IsOutputAvailable(const uint256& txId, int index) {
332-
const CCoins* coins = AccessCoins(txId);
333-
return coins && coins->IsAvailable(index);
334-
}
335-
336331
double CCoinsViewCache::GetPriority(const CTransaction& tx, int nHeight, CAmount &inChainInputValue) const
337332
{
338333
inChainInputValue = 0;

src/coins.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,6 @@ class CCoinsViewCache : public CCoinsViewBacked
531531
//! Check whether all prevouts of the transaction are present in the UTXO set represented by this view
532532
bool HaveInputs(const CTransaction& tx) const;
533533

534-
//! Check if the specific output is available in this view
535-
bool IsOutputAvailable(const uint256& txId, int index);
536-
537534
/**
538535
* Return priority of tx at height nHeight. Also calculate the sum of the values of the inputs
539536
* that are already in the chain. These are the inputs that will age and increase priority as

0 commit comments

Comments
 (0)