Skip to content

Commit 1b46a48

Browse files
committed
[cleanup] Remove unused CReserveKey
1 parent 9819ad6 commit 1b46a48

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

src/script/script.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -581,13 +581,4 @@ struct CScriptWitness
581581
std::string ToString() const;
582582
};
583583

584-
class CReserveScript
585-
{
586-
public:
587-
CScript reserveScript;
588-
virtual void KeepScript() {}
589-
CReserveScript() {}
590-
virtual ~CReserveScript() {}
591-
};
592-
593584
#endif // BITCOIN_SCRIPT_SCRIPT_H

src/validationinterface.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class CBlockIndex;
1818
struct CBlockLocator;
1919
class CBlockIndex;
2020
class CConnman;
21-
class CReserveScript;
2221
class CValidationInterface;
2322
class CValidationState;
2423
class uint256;

src/wallet/wallet.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ class CWallet final : public CCryptoKeyStore, private interfaces::Chain::Notific
12191219
void MaybeResendWalletTxs();
12201220

12211221
/** A key allocated from the key pool. */
1222-
class CReserveKey final : public CReserveScript
1222+
class CReserveKey
12231223
{
12241224
protected:
12251225
CWallet* pwallet;
@@ -1244,7 +1244,6 @@ class CReserveKey final : public CReserveScript
12441244
void ReturnKey();
12451245
bool GetReservedKey(CPubKey &pubkey, bool internal = false);
12461246
void KeepKey();
1247-
void KeepScript() override { KeepKey(); }
12481247
};
12491248

12501249
/** RAII object to check and reserve a wallet rescan */

0 commit comments

Comments
 (0)