Skip to content

Commit 0500993

Browse files
committed
Merge #9085: Remove unused CTxOut::GetHash()
190fd32 Remove unused CTxOut::GetHash() (Matt Corallo)
2 parents ed64bce + 190fd32 commit 0500993

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/primitives/transaction.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ CTxOut::CTxOut(const CAmount& nValueIn, CScript scriptPubKeyIn)
4949
scriptPubKey = scriptPubKeyIn;
5050
}
5151

52-
uint256 CTxOut::GetHash() const
53-
{
54-
return SerializeHash(*this);
55-
}
56-
5752
std::string CTxOut::ToString() const
5853
{
5954
return strprintf("CTxOut(nValue=%d.%08d, scriptPubKey=%s)", nValue / COIN, nValue % COIN, HexStr(scriptPubKey).substr(0, 30));

src/primitives/transaction.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ class CTxOut
160160
return (nValue == -1);
161161
}
162162

163-
uint256 GetHash() const;
164-
165163
CAmount GetDustThreshold(const CFeeRate &minRelayTxFee) const
166164
{
167165
// "Dust" is defined in terms of CTransaction::minRelayTxFee,

0 commit comments

Comments
 (0)