Skip to content

Commit 8d0041e

Browse files
committed
Remove unused GetKeyID and IsScript methods from CBitcoinAddress
1 parent bcc8a62 commit 8d0041e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/base58.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ class CBitcoinAddress : public CBase58Data {
232232
CBitcoinAddress(const char* pszAddress) { SetString(pszAddress); }
233233

234234
CTxDestination Get() const;
235-
bool GetKeyID(CKeyID &keyID) const;
236-
bool IsScript() const;
237235
};
238236

239237
class CBitcoinAddressVisitor : public boost::static_visitor<bool>
@@ -295,21 +293,6 @@ CTxDestination CBitcoinAddress::Get() const
295293
return CNoDestination();
296294
}
297295

298-
bool CBitcoinAddress::GetKeyID(CKeyID& keyID) const
299-
{
300-
if (!IsValid() || vchVersion != Params().Base58Prefix(CChainParams::PUBKEY_ADDRESS))
301-
return false;
302-
uint160 id;
303-
memcpy(&id, vchData.data(), 20);
304-
keyID = CKeyID(id);
305-
return true;
306-
}
307-
308-
bool CBitcoinAddress::IsScript() const
309-
{
310-
return IsValid() && vchVersion == Params().Base58Prefix(CChainParams::SCRIPT_ADDRESS);
311-
}
312-
313296
void CBitcoinSecret::SetKey(const CKey& vchSecret)
314297
{
315298
assert(vchSecret.IsValid());

0 commit comments

Comments
 (0)