Skip to content

Commit fabdc5a

Browse files
author
MarcoFalke
committed
Remove unused LegacyDataSPKM::HaveWatchOnly()
1 parent fa7b7f7 commit fabdc5a

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/wallet/scriptpubkeyman.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019-2022 The Bitcoin Core developers
1+
// Copyright (c) 2019-present The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

@@ -343,12 +343,6 @@ bool LegacyDataSPKM::HaveWatchOnly(const CScript &dest) const
343343
return setWatchOnly.count(dest) > 0;
344344
}
345345

346-
bool LegacyDataSPKM::HaveWatchOnly() const
347-
{
348-
LOCK(cs_KeyStore);
349-
return (!setWatchOnly.empty());
350-
}
351-
352346
bool LegacyDataSPKM::LoadWatchOnly(const CScript &dest)
353347
{
354348
return AddWatchOnlyInMem(dest);

src/wallet/scriptpubkeyman.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019-2022 The Bitcoin Core developers
1+
// Copyright (c) 2019-present The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

@@ -241,8 +241,6 @@ class LegacyDataSPKM : public ScriptPubKeyMan, public FillableSigningProvider
241241
bool LoadWatchOnly(const CScript &dest);
242242
//! Returns whether the watch-only script is in the wallet
243243
bool HaveWatchOnly(const CScript &dest) const;
244-
//! Returns whether there are any watch-only things in the wallet
245-
bool HaveWatchOnly() const;
246244
//! Adds a key to the store, without saving it to disk (used by LoadWallet)
247245
bool LoadKey(const CKey& key, const CPubKey &pubkey);
248246
//! Adds an encrypted key to the store, without saving it to disk (used by LoadWallet)

0 commit comments

Comments
 (0)