From aca464046c12cad4ad91020f850b4306ab33f71a Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Wed, 27 Mar 2024 20:14:00 -0400 Subject: [PATCH] code cleanup --- lib/src/utils/utils.dart | 48 ---------------------------------------- 1 file changed, 48 deletions(-) diff --git a/lib/src/utils/utils.dart b/lib/src/utils/utils.dart index 10b4945f..ccfef76c 100644 --- a/lib/src/utils/utils.dart +++ b/lib/src/utils/utils.dart @@ -1,52 +1,6 @@ -import 'dart:io'; - -import 'package:flutter/cupertino.dart'; - import '../generated/frb_generated.dart'; export 'exceptions.dart'; -// -// void simpleBuild(List args) async { -// final rustCrateDir = buildConfig.packageRoot.resolve('rust'); -// -// final cargoNightly = true; -// final cargoExtraArgs = -// Platform.environment['FRB_SIMPLE_BUILD_CARGO_EXTRA_ARGS']?.split(' ') ?? -// const []; -// final skip = Platform.environment['FRB_SIMPLE_BUILD_SKIP'] == '1'; -// final rustflags = Platform.environment['RUSTFLAGS']; -// -// if (skip) { -// print( -// 'frb_utils::simpleBuild SKIP BUILD since environment variable requires this'); -// } else { -// await runCommand( -// 'cargo', -// [ -// '+nightly', -// 'build', -// '--release', -// ...cargoExtraArgs, -// ], -// pwd: rustCrateDir.toFilePath(), -// printCommandInStderr: true, -// env: { -// // Though runCommand auto pass environment variable to commands, -// // we do this to explicitly show this important flag -// if (rustflags != null) 'RUSTFLAGS': rustflags, -// }, -// ); -// } -// -// final dependencies = { -// rustCrateDir, -// buildConfig.packageRoot.resolve('build.rs'), -// }; -// print('dependencies: $dependencies'); -// buildOutput.dependencies.dependencies.addAll(dependencies); -// -// await buildOutput.writeToFile(outDir: buildConfig.outDir); -// } class Frb { static Future verifyInit() async { @@ -55,8 +9,6 @@ class Frb { await BdkCore.init(); } } catch (e) { - print(Directory.current); - debugPrint(e.toString()); throw Exception("Failed to initialize bdk-flutter"); } }