mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 04:12:36 -03:00
[cleanup] Remove unused CReserveKey
This commit is contained in:
parent
9819ad6d07
commit
1b46a4889f
3 changed files with 1 additions and 12 deletions
|
@ -581,13 +581,4 @@ struct CScriptWitness
|
||||||
std::string ToString() const;
|
std::string ToString() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CReserveScript
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
CScript reserveScript;
|
|
||||||
virtual void KeepScript() {}
|
|
||||||
CReserveScript() {}
|
|
||||||
virtual ~CReserveScript() {}
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // BITCOIN_SCRIPT_SCRIPT_H
|
#endif // BITCOIN_SCRIPT_SCRIPT_H
|
||||||
|
|
|
@ -18,7 +18,6 @@ class CBlockIndex;
|
||||||
struct CBlockLocator;
|
struct CBlockLocator;
|
||||||
class CBlockIndex;
|
class CBlockIndex;
|
||||||
class CConnman;
|
class CConnman;
|
||||||
class CReserveScript;
|
|
||||||
class CValidationInterface;
|
class CValidationInterface;
|
||||||
class CValidationState;
|
class CValidationState;
|
||||||
class uint256;
|
class uint256;
|
||||||
|
|
|
@ -1219,7 +1219,7 @@ public:
|
||||||
void MaybeResendWalletTxs();
|
void MaybeResendWalletTxs();
|
||||||
|
|
||||||
/** A key allocated from the key pool. */
|
/** A key allocated from the key pool. */
|
||||||
class CReserveKey final : public CReserveScript
|
class CReserveKey
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
CWallet* pwallet;
|
CWallet* pwallet;
|
||||||
|
@ -1244,7 +1244,6 @@ public:
|
||||||
void ReturnKey();
|
void ReturnKey();
|
||||||
bool GetReservedKey(CPubKey &pubkey, bool internal = false);
|
bool GetReservedKey(CPubKey &pubkey, bool internal = false);
|
||||||
void KeepKey();
|
void KeepKey();
|
||||||
void KeepScript() override { KeepKey(); }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** RAII object to check and reserve a wallet rescan */
|
/** RAII object to check and reserve a wallet rescan */
|
||||||
|
|
Loading…
Reference in a new issue