Remove unused CTxOut::GetHash()

This commit is contained in:
Matt Corallo committed 2016-11-04 10:50:43 -04:00
1 parent ed64bcec2d
commit 190fd321ad
2 files changed
-7

No files matched your search

-5
View File
@@ -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
View File
@@ -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,