From 5b47d5806d97f1206d336312d87e3a0a703974ef Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 14 Nov 2022 09:25:06 -0600 Subject: [PATCH] disable seemingly pointless code --- .../coins/epiccash/epiccash_wallet.dart | 41 ++++++++++--------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/lib/services/coins/epiccash/epiccash_wallet.dart b/lib/services/coins/epiccash/epiccash_wallet.dart index 1a5b2961f..fcf728fb8 100644 --- a/lib/services/coins/epiccash/epiccash_wallet.dart +++ b/lib/services/coins/epiccash/epiccash_wallet.dart @@ -252,26 +252,27 @@ Future deleteEpicWallet({ required String walletId, required SecureStorageInterface secureStore, }) async { - String? config = await secureStore.read(key: '${walletId}_config'); - // TODO: why double check for iOS? - if (Platform.isIOS) { - Directory appDir = await StackFileSystem.applicationRootDirectory(); - // todo why double check for ios? - // if (Platform.isIOS) { - // appDir = (await getLibraryDirectory()); - // } - // if (Platform.isLinux) { - // appDir = Directory("${appDir.path}/.stackwallet"); - // } - final path = "${appDir.path}/epiccash"; - final String name = walletId; - - final walletDir = '$path/$name'; - var editConfig = jsonDecode(config as String); - - editConfig["wallet_dir"] = walletDir; - config = jsonEncode(editConfig); - } + // is this even needed for anything? + // String? config = await secureStore.read(key: '${walletId}_config'); + // // TODO: why double check for iOS? + // if (Platform.isIOS) { + // Directory appDir = await StackFileSystem.applicationRootDirectory(); + // // todo why double check for ios? + // // if (Platform.isIOS) { + // // appDir = (await getLibraryDirectory()); + // // } + // // if (Platform.isLinux) { + // // appDir = Directory("${appDir.path}/.stackwallet"); + // // } + // final path = "${appDir.path}/epiccash"; + // final String name = walletId; + // + // final walletDir = '$path/$name'; + // var editConfig = jsonDecode(config as String); + // + // editConfig["wallet_dir"] = walletDir; + // config = jsonEncode(editConfig); + // } final wallet = await secureStore.read(key: '${walletId}_wallet');