aboutsummaryrefslogtreecommitdiff
path: root/src/base58.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-09-06 23:47:53 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-09-06 23:48:35 +0100
commit8d0041e607a0e5bff52152f3d8af504f3703baa7 (patch)
treec1d6955fd79207757107476f0e7fe22d932f35a8 /src/base58.cpp
parentbcc8a620eae9cd8fe95f0a02f17183c4a132e5a2 (diff)
Remove unused GetKeyID and IsScript methods from CBitcoinAddress
Diffstat (limited to 'src/base58.cpp')
-rw-r--r--src/base58.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/base58.cpp b/src/base58.cpp
index e093608aa3..3b907c20d6 100644
--- a/src/base58.cpp
+++ b/src/base58.cpp
@@ -232,8 +232,6 @@ public:
CBitcoinAddress(const char* pszAddress) { SetString(pszAddress); }
CTxDestination Get() const;
- bool GetKeyID(CKeyID &keyID) const;
- bool IsScript() const;
};
class CBitcoinAddressVisitor : public boost::static_visitor<bool>
@@ -295,21 +293,6 @@ CTxDestination CBitcoinAddress::Get() const
return CNoDestination();
}
-bool CBitcoinAddress::GetKeyID(CKeyID& keyID) const
-{
- if (!IsValid() || vchVersion != Params().Base58Prefix(CChainParams::PUBKEY_ADDRESS))
- return false;
- uint160 id;
- memcpy(&id, vchData.data(), 20);
- keyID = CKeyID(id);
- return true;
-}
-
-bool CBitcoinAddress::IsScript() const
-{
- return IsValid() && vchVersion == Params().Base58Prefix(CChainParams::SCRIPT_ADDRESS);
-}
-
void CBitcoinSecret::SetKey(const CKey& vchSecret)
{
assert(vchSecret.IsValid());