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.
This commit is contained in:
Kittywhiskers Van Gogh 2024-09-13 13:21:43 +00:00
parent 061aa05cf0
commit 77ce6af5c1
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -232,13 +232,8 @@ void OptionsModel::Init(bool resetSettings)
if (!gArgs.SoftSetArg("-coinjoinrounds", settings.value("nCoinJoinRounds").toString().toStdString())) if (!gArgs.SoftSetArg("-coinjoinrounds", settings.value("nCoinJoinRounds").toString().toStdString()))
addOverriddenOption("-coinjoinrounds"); addOverriddenOption("-coinjoinrounds");
if (!settings.contains("nCoinJoinAmount")) { if (!settings.contains("nCoinJoinAmount"))
// for migration from old settings
if (!settings.contains("nAnonymizeDashAmount"))
settings.setValue("nCoinJoinAmount", DEFAULT_COINJOIN_AMOUNT); settings.setValue("nCoinJoinAmount", DEFAULT_COINJOIN_AMOUNT);
else
settings.setValue("nCoinJoinAmount", settings.value("nAnonymizeDashAmount").toInt());
}
if (!gArgs.SoftSetArg("-coinjoinamount", settings.value("nCoinJoinAmount").toString().toStdString())) if (!gArgs.SoftSetArg("-coinjoinamount", settings.value("nCoinJoinAmount").toString().toStdString()))
addOverriddenOption("-coinjoinamount"); addOverriddenOption("-coinjoinamount");