From d9c562918012395dc017a3ce337a6512d91ef4ca Mon Sep 17 00:00:00 2001 From: fosse Date: Tue, 27 Feb 2024 14:49:23 -0500 Subject: [PATCH] more code cleanup --- lib/main.dart | 7 ------- lib/router.dart | 4 ---- lib/src/screens/receive/lightning_invoice_page.dart | 7 ------- lib/view_model/lightning_view_model.dart | 3 --- 4 files changed, 21 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 8eee2e328..0c8a4c094 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -41,8 +41,6 @@ import 'package:uni_links/uni_links.dart'; import 'package:cw_core/unspent_coins_info.dart'; import 'package:cake_wallet/monero/monero.dart'; import 'package:cw_core/cake_hive.dart'; -import 'package:breez_sdk/breez_sdk.dart'; -import 'package:breez_sdk/bridge_generated.dart'; final navigatorKey = GlobalKey(); final rootKey = GlobalKey(); @@ -66,11 +64,6 @@ Future main() async { await initializeAppConfigs(); - // breez: - // BreezDateUtils.setupLocales(); - // BreezLogger(); - - runApp(App()); }, (error, stackTrace) async { ExceptionHandler.onError(FlutterErrorDetails(exception: error, stack: stackTrace)); diff --git a/lib/router.dart b/lib/router.dart index a198663cd..cb7960b1a 100644 --- a/lib/router.dart +++ b/lib/router.dart @@ -663,10 +663,6 @@ Route createRoute(RouteSettings settings) { return CupertinoPageRoute( fullscreenDialog: true, builder: (_) => getIt.get(param1: args)); - // case Routes.lightningSettings: - // return CupertinoPageRoute( - // fullscreenDialog: true, builder: (_) => getIt.get()); - default: return MaterialPageRoute( builder: (_) => Scaffold( diff --git a/lib/src/screens/receive/lightning_invoice_page.dart b/lib/src/screens/receive/lightning_invoice_page.dart index 3dc0784bb..753c9f611 100644 --- a/lib/src/screens/receive/lightning_invoice_page.dart +++ b/lib/src/screens/receive/lightning_invoice_page.dart @@ -228,13 +228,6 @@ class LightningInvoicePage extends BasePage { }); reaction((_) => lightningInvoicePageViewModel.state, (ExecutionState state) { - // if (state is ExecutedSuccessfullyState) { - // // Navigator.pushNamed(context, Routes.anonPayReceivePage, arguments: state.payload); - // lightningViewModel.createInvoice( - // amount: state.payload["amount"] as String, - // description: state.payload["description"] as String?, - // ); - // } if (state is ExecutedSuccessfullyState) { showPopUp( diff --git a/lib/view_model/lightning_view_model.dart b/lib/view_model/lightning_view_model.dart index 1237b8228..7117b0da4 100644 --- a/lib/view_model/lightning_view_model.dart +++ b/lib/view_model/lightning_view_model.dart @@ -10,9 +10,6 @@ class LightningViewModel = LightningViewModelBase with _$LightningViewModel; abstract class LightningViewModelBase with Store { LightningViewModelBase() {} - // @observable - // ExecutionState state; - Future> receiveOnchain() async { final sdk = await BreezSDK();