Browse Source

Remove unused CTxOut::GetHash()

0.14
Matt Corallo 8 years ago
parent
commit
190fd321ad
  1. 5
      src/primitives/transaction.cpp
  2. 2
      src/primitives/transaction.h

5
src/primitives/transaction.cpp

@ -49,11 +49,6 @@ CTxOut::CTxOut(const CAmount& nValueIn, CScript scriptPubKeyIn)
scriptPubKey = scriptPubKeyIn; scriptPubKey = scriptPubKeyIn;
} }
uint256 CTxOut::GetHash() const
{
return SerializeHash(*this);
}
std::string CTxOut::ToString() const std::string CTxOut::ToString() const
{ {
return strprintf("CTxOut(nValue=%d.%08d, scriptPubKey=%s)", nValue / COIN, nValue % COIN, HexStr(scriptPubKey).substr(0, 30)); return strprintf("CTxOut(nValue=%d.%08d, scriptPubKey=%s)", nValue / COIN, nValue % COIN, HexStr(scriptPubKey).substr(0, 30));

2
src/primitives/transaction.h

@ -160,8 +160,6 @@ public:
return (nValue == -1); return (nValue == -1);
} }
uint256 GetHash() const;
CAmount GetDustThreshold(const CFeeRate &minRelayTxFee) const CAmount GetDustThreshold(const CFeeRate &minRelayTxFee) const
{ {
// "Dust" is defined in terms of CTransaction::minRelayTxFee, // "Dust" is defined in terms of CTransaction::minRelayTxFee,

Loading…
Cancel
Save