From 7558a2324332371a43ee775af52bf6fec89cfe9e Mon Sep 17 00:00:00 2001 From: selsta Date: Sat, 24 Apr 2021 08:25:12 +0200 Subject: [PATCH] main: remove minor switch/case code duplication --- main.qml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.qml b/main.qml index c0e67eae..221549d6 100644 --- a/main.qml +++ b/main.qml @@ -534,12 +534,6 @@ ApplicationWindow { // try to resolve common wallet cache errors automatically switch (wallet.errorString) { case "basic_string::_M_replace_aux": - walletManager.clearWalletCache(wallet.path); - walletPassword = passwordDialog.password; - appWindow.initialize(); - console.error("Repairing wallet cache with error: ", wallet.errorString); - appWindow.showStatusMessage(qsTr("Repairing incompatible wallet cache. Resyncing wallet."),6); - return; case "std::bad_alloc": walletManager.clearWalletCache(wallet.path); walletPassword = passwordDialog.password;