mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Delete unused non-CWalletTx GetCredit
This commit is contained in:
parent
66c015529e
commit
c17af5d2dd
2 changed files with 0 additions and 15 deletions
|
|
@ -1459,20 +1459,6 @@ CAmountMap CWallet::GetCredit(const CWalletTx& wtx, const isminefilter& filter)
|
||||||
return nCredit;
|
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 CWallet::GetChange(const CWalletTx& wtx) const {
|
||||||
CAmountMap nChange;
|
CAmountMap nChange;
|
||||||
for (unsigned int i = 0; i < wtx.tx->vout.size(); ++i) {
|
for (unsigned int i = 0; i < wtx.tx->vout.size(); ++i) {
|
||||||
|
|
|
||||||
|
|
@ -1159,7 +1159,6 @@ public:
|
||||||
CAmountMap GetDebit(const CTransaction& tx, const isminefilter& filter) const;
|
CAmountMap GetDebit(const CTransaction& tx, const isminefilter& filter) const;
|
||||||
/** Returns whether all of the inputs match the filter */
|
/** Returns whether all of the inputs match the filter */
|
||||||
bool IsAllFromMe(const CTransaction& tx, const isminefilter& filter) const;
|
bool IsAllFromMe(const CTransaction& tx, const isminefilter& filter) const;
|
||||||
CAmountMap GetCredit(const CTransaction& tx, const isminefilter& filter) const;
|
|
||||||
CAmountMap GetChange(const CTransaction& tx) const;
|
CAmountMap GetChange(const CTransaction& tx) const;
|
||||||
|
|
||||||
// ELEMENTS:
|
// ELEMENTS:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue