Remove unused LegacyDataSPKM::HaveWatchOnly()
This commit is contained in:
2 files changed
+2
-10
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2019-2022 The Bitcoin Core developers
|
// Copyright (c) 2019-present The Bitcoin Core developers
|
||||||
// Distributed under the MIT software license, see the accompanying
|
// Distributed under the MIT software license, see the accompanying
|
||||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
@@ -343,12 +343,6 @@ bool LegacyDataSPKM::HaveWatchOnly(const CScript &dest) const
|
|||||||
return setWatchOnly.count(dest) > 0;
|
return setWatchOnly.count(dest) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LegacyDataSPKM::HaveWatchOnly() const
|
|
||||||
{
|
|
||||||
LOCK(cs_KeyStore);
|
|
||||||
return (!setWatchOnly.empty());
|
|
||||||
}
|
|
||||||
|
|
||||||
bool LegacyDataSPKM::LoadWatchOnly(const CScript &dest)
|
bool LegacyDataSPKM::LoadWatchOnly(const CScript &dest)
|
||||||
{
|
{
|
||||||
return AddWatchOnlyInMem(dest);
|
return AddWatchOnlyInMem(dest);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2019-2022 The Bitcoin Core developers
|
// Copyright (c) 2019-present The Bitcoin Core developers
|
||||||
// Distributed under the MIT software license, see the accompanying
|
// Distributed under the MIT software license, see the accompanying
|
||||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
@@ -241,8 +241,6 @@ public:
|
|||||||
bool LoadWatchOnly(const CScript &dest);
|
bool LoadWatchOnly(const CScript &dest);
|
||||||
//! Returns whether the watch-only script is in the wallet
|
//! Returns whether the watch-only script is in the wallet
|
||||||
bool HaveWatchOnly(const CScript &dest) const;
|
bool HaveWatchOnly(const CScript &dest) const;
|
||||||
//! Returns whether there are any watch-only things in the wallet
|
|
||||||
bool HaveWatchOnly() const;
|
|
||||||
//! Adds a key to the store, without saving it to disk (used by LoadWallet)
|
//! Adds a key to the store, without saving it to disk (used by LoadWallet)
|
||||||
bool LoadKey(const CKey& key, const CPubKey &pubkey);
|
bool LoadKey(const CKey& key, const CPubKey &pubkey);
|
||||||
//! Adds an encrypted key to the store, without saving it to disk (used by LoadWallet)
|
//! Adds an encrypted key to the store, without saving it to disk (used by LoadWallet)
|
||||||
|
|||||||
Reference in new issue
Block a user