mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Delete unused non-CWalletTx GetCredit
This commit is contained in:
parent
427903dd97
commit
0746330f8f
2 changed files with 0 additions and 15 deletions
|
|
@ -1371,20 +1371,6 @@ CAmountMap CWallet::GetCredit(const CWalletTx& wtx, const isminefilter& filter)
|
|||
return nCredit;
|
||||
}
|
||||
|
||||
CAmountMap CWallet::GetCredit(const CTransaction& tx, const isminefilter& filter) const
|
||||
{
|
||||
assert(false && "CWallet::GetCredit(const CTransaction&, const isminefilter&): this method should not be used anymore");
|
||||
|
||||
CAmountMap nCredit;
|
||||
for (const CTxOut& txout : tx.vout)
|
||||
{
|
||||
nCredit += GetCredit(txout, filter);
|
||||
if (!MoneyRange(nCredit))
|
||||
throw std::runtime_error(std::string(__func__) + ": value out of range");
|
||||
}
|
||||
return nCredit;
|
||||
}
|
||||
|
||||
CAmountMap CWallet::GetChange(const CWalletTx& wtx) const {
|
||||
CAmountMap nChange;
|
||||
for (unsigned int i = 0; i < wtx.tx->vout.size(); ++i) {
|
||||
|
|
|
|||
|
|
@ -1076,7 +1076,6 @@ public:
|
|||
CAmountMap GetDebit(const CTransaction& tx, const isminefilter& filter) const;
|
||||
/** Returns whether all of the inputs match the filter */
|
||||
bool IsAllFromMe(const CTransaction& tx, const isminefilter& filter) const;
|
||||
CAmountMap GetCredit(const CTransaction& tx, const isminefilter& filter) const;
|
||||
CAmountMap GetChange(const CTransaction& tx) const;
|
||||
|
||||
// ELEMENTS:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue