mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-23 02:54:30 +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 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');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue