diff --git a/cw_lightning/lib/lightning_wallet.dart b/cw_lightning/lib/lightning_wallet.dart index 80598dcbc..cb61db204 100644 --- a/cw_lightning/lib/lightning_wallet.dart +++ b/cw_lightning/lib/lightning_wallet.dart @@ -64,45 +64,6 @@ abstract class LightningWalletBase extends ElectrumWallet with Store { }); } - - void printDirectoryTree(Directory directory, {String prefix = ''}) { - try { - final files = directory.listSync(); - for (var i = 0; i < files.length; i++) { - final isLast = i == files.length - 1; - if (files[i] is File) { - print( - '${prefix}${isLast ? '└─' : '├─'} ${files[i].path.split(Platform.pathSeparator).last}'); - } else if (files[i] is Directory) { - print( - '${prefix}${isLast ? '└─' : '├─'} ${files[i].path.split(Platform.pathSeparator).last}'); - printDirectoryTree(files[i] as Directory, prefix: '${prefix}${isLast ? ' ' : '│ '}'); - } - } - } catch (e) { - print('Error: $e'); - } - } - - Future setupBreeze(Uint8List seedBytes) async { - // Initialize SDK logs listener - final sdk = BreezSDK(); - sdk.initialize(); - - NodeConfig breezNodeConfig = NodeConfig.greenlight( - config: GreenlightNodeConfig( - partnerCredentials: null, - inviteCode: secrets.breezInviteCode, - ), - ); - Config breezConfig = await sdk.defaultConfig( - envType: EnvironmentType.Production, - apiKey: secrets.breezApiKey, - nodeConfig: breezNodeConfig, - ); - - printDirectoryTree(Directory((await getApplicationDocumentsDirectory()).path)); - static Future create( {required String mnemonic, required String password,