disable seemingly pointless code

This commit is contained in:
julian 2022-11-14 09:25:06 -06:00
parent daa7708ad0
commit 5b47d5806d

View file

@ -252,26 +252,27 @@ Future<String> 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');