diff options
| author | jtimon <[email protected]> | 2014-08-12 00:13:45 +0200 |
|---|---|---|
| committer | jtimon <[email protected]> | 2014-08-12 02:02:17 +0200 |
| commit | 54e658f249f8b2a2cbf7dbe2bab9749faa91c611 (patch) | |
| tree | 2e4517700fc12d95d09c91f132baebea1a05adaf /src/script.cpp | |
| parent | Merge pull request #4592 (diff) | |
| download | discoin-54e658f249f8b2a2cbf7dbe2bab9749faa91c611.tar.xz discoin-54e658f249f8b2a2cbf7dbe2bab9749faa91c611.zip | |
Remove unused CKeyStoreIsMineVisitor
Diffstat (limited to 'src/script.cpp')
| -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 39ae001db..942e8810d 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; |