From 77ce6af5c1f9518a22247be622389c72a195ec32 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:21:43 +0000 Subject: [PATCH] chore: remove ancient setting migration logic This code in its original form was first introduced in 0.12 (bbbbdd81) and in its current form 0.17 (ae506bae6) and has survived rebrandings. Time to retire it. --- src/qt/optionsmodel.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp index fb07fd662e..85c4cf4077 100644 --- a/src/qt/optionsmodel.cpp +++ b/src/qt/optionsmodel.cpp @@ -232,13 +232,8 @@ void OptionsModel::Init(bool resetSettings) if (!gArgs.SoftSetArg("-coinjoinrounds", settings.value("nCoinJoinRounds").toString().toStdString())) addOverriddenOption("-coinjoinrounds"); - if (!settings.contains("nCoinJoinAmount")) { - // for migration from old settings - if (!settings.contains("nAnonymizeDashAmount")) - settings.setValue("nCoinJoinAmount", DEFAULT_COINJOIN_AMOUNT); - else - settings.setValue("nCoinJoinAmount", settings.value("nAnonymizeDashAmount").toInt()); - } + if (!settings.contains("nCoinJoinAmount")) + settings.setValue("nCoinJoinAmount", DEFAULT_COINJOIN_AMOUNT); if (!gArgs.SoftSetArg("-coinjoinamount", settings.value("nCoinJoinAmount").toString().toStdString())) addOverriddenOption("-coinjoinamount");