Commit 926601fe authored by Wladimir J. van der Laan's avatar Wladimir J. van der Laan
Browse files

Merge pull request #4681

54e658f2 Remove unused CKeyStoreIsMineVisitor (jtimon)
parents f30b2ae7 453acf8a
Showing with 0 additions and 12 deletions
+0 -12
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment