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 String walletId,
required SecureStorageInterface secureStore, required SecureStorageInterface secureStore,
}) async { }) async {
String? config = await secureStore.read(key: '${walletId}_config'); // is this even needed for anything?
// TODO: why double check for iOS? // String? config = await secureStore.read(key: '${walletId}_config');
if (Platform.isIOS) { // // TODO: why double check for iOS?
Directory appDir = await StackFileSystem.applicationRootDirectory(); // if (Platform.isIOS) {
// todo why double check for ios? // Directory appDir = await StackFileSystem.applicationRootDirectory();
// if (Platform.isIOS) { // // todo why double check for ios?
// appDir = (await getLibraryDirectory()); // // if (Platform.isIOS) {
// } // // appDir = (await getLibraryDirectory());
// if (Platform.isLinux) { // // }
// appDir = Directory("${appDir.path}/.stackwallet"); // // if (Platform.isLinux) {
// } // // appDir = Directory("${appDir.path}/.stackwallet");
final path = "${appDir.path}/epiccash"; // // }
final String name = walletId; // final path = "${appDir.path}/epiccash";
// final String name = walletId;
final walletDir = '$path/$name'; //
var editConfig = jsonDecode(config as String); // final walletDir = '$path/$name';
// var editConfig = jsonDecode(config as String);
editConfig["wallet_dir"] = walletDir; //
config = jsonEncode(editConfig); // editConfig["wallet_dir"] = walletDir;
} // config = jsonEncode(editConfig);
// }
final wallet = await secureStore.read(key: '${walletId}_wallet'); final wallet = await secureStore.read(key: '${walletId}_wallet');