mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 03:06:29 +00:00
remove helper func
This commit is contained in:
parent
ad965e081c
commit
d357b8dd69
1 changed files with 0 additions and 26 deletions
|
@ -393,30 +393,4 @@ mixin FusionWalletInterface {
|
|||
throw UnimplementedError(
|
||||
"TODO refreshFusion eg look up number of fusion participants connected/coordinating");
|
||||
}
|
||||
|
||||
/// Testing ground for iterating thru the UI state.
|
||||
///
|
||||
/// TODO remove this, just for development.
|
||||
Future<void> stepThruUiStates() async {
|
||||
// Define the list of states.
|
||||
final List<fusion.FusionStatus> states = [
|
||||
fusion.FusionStatus.connecting,
|
||||
fusion.FusionStatus.setup,
|
||||
fusion.FusionStatus.waiting,
|
||||
fusion.FusionStatus.running,
|
||||
fusion.FusionStatus.complete,
|
||||
fusion.FusionStatus.failed,
|
||||
fusion.FusionStatus.exception,
|
||||
fusion.FusionStatus.reset,
|
||||
];
|
||||
|
||||
// Iterate through the list of states, waiting one second between each.
|
||||
for (final state in states) {
|
||||
// Set the connecting status to the current state.
|
||||
_updateStatus(state);
|
||||
|
||||
// Wait one second.
|
||||
await Future.delayed(const Duration(seconds: 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue