Skip to content

Commit 2f12aaa

Browse files
committed
Cleanup: remove unused walletModel::getOutputs
1 parent f1529c5 commit 2f12aaa

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/qt/walletmodel.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -909,20 +909,6 @@ std::string WalletModel::getLabelForAddress(const CTxDestination& address)
909909
return label;
910910
}
911911

912-
// returns a list of COutputs from COutPoints
913-
void WalletModel::getOutputs(const std::vector<OutPointWrapper>& vOutpoints, std::vector<COutput>& vOutputs)
914-
{
915-
LOCK2(cs_main, wallet->cs_wallet);
916-
for (const auto& outpoint : vOutpoints) {
917-
const auto* tx = wallet->GetWalletTx(outpoint.outPoint.hash);
918-
if (!tx) continue;
919-
bool fConflicted;
920-
const int nDepth = tx->GetDepthAndMempool(fConflicted);
921-
if (nDepth < 0 || fConflicted) continue;
922-
vOutputs.emplace_back(tx, outpoint.outPoint.n, nDepth, true, true);
923-
}
924-
}
925-
926912
// returns a COutPoint of 10000 PIV if found
927913
bool WalletModel::getMNCollateralCandidate(COutPoint& outPoint)
928914
{

src/qt/walletmodel.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ class WalletModel : public QObject
282282
bool isMine(const QString& addressStr);
283283
bool IsShieldedDestination(const CWDestination& address);
284284
bool isUsed(CTxDestination address);
285-
void getOutputs(const std::vector<OutPointWrapper>& vOutpoints, std::vector<COutput>& vOutputs);
286285
bool getMNCollateralCandidate(COutPoint& outPoint);
287286
bool isSpent(const COutPoint& outpoint) const;
288287

0 commit comments

Comments
 (0)