Skip to content

Commit b0bfbe5

Browse files
committed
refactor: Drop `bool force' parameter
1 parent 68c9bbe commit b0bfbe5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/qt/bitcoin.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,11 @@ void BitcoinApplication::parameterSetup()
281281
m_node.initParameterInteraction();
282282
}
283283

284-
void BitcoinApplication::SetPrune(bool prune, bool force)
284+
void BitcoinApplication::SetPrune(bool prune)
285285
{
286286
// If prune is set, intentionally override existing prune size with
287287
// the default size since this is called when choosing a new datadir.
288-
optionsModel->SetPruneTargetGB(prune ? DEFAULT_PRUNE_TARGET_GB : 0, force);
288+
optionsModel->SetPruneTargetGB(prune ? DEFAULT_PRUNE_TARGET_GB : 0, true);
289289
}
290290

291291
void BitcoinApplication::requestInitialize()
@@ -564,7 +564,7 @@ int GuiMain(int argc, char* argv[])
564564

565565
if (did_show_intro) {
566566
// Store intro dialog settings other than datadir (network specific)
567-
app.SetPrune(prune, true);
567+
app.SetPrune(prune);
568568
}
569569

570570
if (gArgs.GetBoolArg("-splash", DEFAULT_SPLASHSCREEN) && !gArgs.GetBoolArg("-min", false))

src/qt/bitcoin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class BitcoinApplication: public QApplication
6868
/// Create options model
6969
void createOptionsModel(bool resetSettings);
7070
/// Update prune value
71-
void SetPrune(bool prune, bool force = false);
71+
void SetPrune(bool prune);
7272
/// Create main window
7373
void createWindow(const NetworkStyle *networkStyle);
7474
/// Create splash screen

0 commit comments

Comments
 (0)