mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
Remove unused MakeOptional
The only use was to work around a compiler warning in an ancient compiler, which we no longer support.
This commit is contained in:
@@ -1573,8 +1573,7 @@ static RPCHelpMan listsinceblock()
|
||||
|
||||
LOCK(wallet.cs_wallet);
|
||||
|
||||
// The way the 'height' is initialized is just a workaround for the gcc bug #47679 since version 4.6.0.
|
||||
Optional<int> height = MakeOptional(false, int()); // Height of the specified block or the common ancestor, if the block provided was in a deactivated chain.
|
||||
Optional<int> height; // Height of the specified block or the common ancestor, if the block provided was in a deactivated chain.
|
||||
Optional<int> altheight; // Height of the specified block, even if it's in a deactivated chain.
|
||||
int target_confirms = 1;
|
||||
isminefilter filter = ISMINE_SPENDABLE;
|
||||
@@ -3597,7 +3596,7 @@ static RPCHelpMan rescanblockchain()
|
||||
}
|
||||
|
||||
int start_height = 0;
|
||||
Optional<int> stop_height = MakeOptional(false, int());
|
||||
Optional<int> stop_height;
|
||||
uint256 start_block;
|
||||
{
|
||||
LOCK(pwallet->cs_wallet);
|
||||
|
||||
Reference in New Issue
Block a user