mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 18:44:31 +00:00
disable seemingly pointless code
This commit is contained in:
parent
daa7708ad0
commit
5b47d5806d
1 changed files with 21 additions and 20 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue