diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-12 08:25:24 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-12 08:25:31 +0200 |
commit | 47963936d6e13007af4c0bc1f1618fbf05f26239 (patch) | |
tree | 2e4517700fc12d95d09c91f132baebea1a05adaf /src | |
parent | 8b11d3de7aa4fc3f6c4e7bf292495850034ded2c (diff) | |
parent | 54e658f249f8b2a2cbf7dbe2bab9749faa91c611 (diff) | |
download | bitcoin-47963936d6e13007af4c0bc1f1618fbf05f26239.tar.xz |
Merge pull request #4681
54e658f Remove unused CKeyStoreIsMineVisitor (jtimon)
Diffstat (limited to 'src')
-rw-r--r-- | src/script.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/script.cpp b/src/script.cpp index 39ae001db8..942e8810db 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -1444,18 +1444,6 @@ unsigned int HaveKeys(const vector<valtype>& pubkeys, const CKeyStore& keystore) return nResult; } - -class CKeyStoreIsMineVisitor : public boost::static_visitor<bool> -{ -private: - const CKeyStore *keystore; -public: - CKeyStoreIsMineVisitor(const CKeyStore *keystoreIn) : keystore(keystoreIn) { } - bool operator()(const CNoDestination &dest) const { return false; } - bool operator()(const CKeyID &keyID) const { return keystore->HaveKey(keyID); } - bool operator()(const CScriptID &scriptID) const { return keystore->HaveCScript(scriptID); } -}; - isminetype IsMine(const CKeyStore &keystore, const CTxDestination& dest) { CScript script; |