Merge #9085: Remove unused CTxOut::GetHash()

190fd32 Remove unused CTxOut::GetHash() (Matt Corallo)
This commit is contained in:
Pieter Wuille 2016-11-04 11:40:46 -07:00 committed by Alexander Block
parent 92f0f67c0c
commit 188a2d98f7
2 changed files with 0 additions and 7 deletions

View File

@ -55,11 +55,6 @@ CTxOut::CTxOut(const CAmount& nValueIn, CScript scriptPubKeyIn)
nRounds = -10; nRounds = -10;
} }
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));

View File

@ -164,8 +164,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, which has units duffs-per-kilobyte. // "Dust" is defined in terms of CTransaction::minRelayTxFee, which has units duffs-per-kilobyte.