more code cleanup

This commit is contained in:
fosse 2024-02-27 14:49:23 -05:00
parent ac2d4a6c96
commit d9c5629180
4 changed files with 0 additions and 21 deletions

View file

@ -41,8 +41,6 @@ import 'package:uni_links/uni_links.dart';
import 'package:cw_core/unspent_coins_info.dart'; import 'package:cw_core/unspent_coins_info.dart';
import 'package:cake_wallet/monero/monero.dart'; import 'package:cake_wallet/monero/monero.dart';
import 'package:cw_core/cake_hive.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<NavigatorState>(); final navigatorKey = GlobalKey<NavigatorState>();
final rootKey = GlobalKey<RootState>(); final rootKey = GlobalKey<RootState>();
@ -66,11 +64,6 @@ Future<void> main() async {
await initializeAppConfigs(); await initializeAppConfigs();
// breez:
// BreezDateUtils.setupLocales();
// BreezLogger();
runApp(App()); runApp(App());
}, (error, stackTrace) async { }, (error, stackTrace) async {
ExceptionHandler.onError(FlutterErrorDetails(exception: error, stack: stackTrace)); ExceptionHandler.onError(FlutterErrorDetails(exception: error, stack: stackTrace));

View file

@ -663,10 +663,6 @@ Route<dynamic> createRoute(RouteSettings settings) {
return CupertinoPageRoute<void>( return CupertinoPageRoute<void>(
fullscreenDialog: true, builder: (_) => getIt.get<LightningInvoicePage>(param1: args)); fullscreenDialog: true, builder: (_) => getIt.get<LightningInvoicePage>(param1: args));
// case Routes.lightningSettings:
// return CupertinoPageRoute<void>(
// fullscreenDialog: true, builder: (_) => getIt.get<LightningSendPage>());
default: default:
return MaterialPageRoute<void>( return MaterialPageRoute<void>(
builder: (_) => Scaffold( builder: (_) => Scaffold(

View file

@ -228,13 +228,6 @@ class LightningInvoicePage extends BasePage {
}); });
reaction((_) => lightningInvoicePageViewModel.state, (ExecutionState state) { 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) { if (state is ExecutedSuccessfullyState) {
showPopUp<void>( showPopUp<void>(

View file

@ -10,9 +10,6 @@ class LightningViewModel = LightningViewModelBase with _$LightningViewModel;
abstract class LightningViewModelBase with Store { abstract class LightningViewModelBase with Store {
LightningViewModelBase() {} LightningViewModelBase() {}
// @observable
// ExecutionState state;
Future<List<String>> receiveOnchain() async { Future<List<String>> receiveOnchain() async {
final sdk = await BreezSDK(); final sdk = await BreezSDK();