mirror of
https://github.com/smmarty/friflex_flutter_starter.git
synced 2025-12-22 01:20:46 +00:00
removed unused set
This commit is contained in:
@@ -60,7 +60,6 @@ class InitializationController<L extends InitializableStepLabel,
|
|||||||
for (final entry in stepsToPerform.entries)
|
for (final entry in stepsToPerform.entries)
|
||||||
entry.key: InitializationStepResult$NotInitialized(step: entry.value),
|
entry.key: InitializationStepResult$NotInitialized(step: entry.value),
|
||||||
};
|
};
|
||||||
final stepsInProgress = <L>{};
|
|
||||||
|
|
||||||
Future<void> handleSteps(Set<S> stepsToHandle) {
|
Future<void> handleSteps(Set<S> stepsToHandle) {
|
||||||
print(
|
print(
|
||||||
@@ -74,7 +73,6 @@ class InitializationController<L extends InitializableStepLabel,
|
|||||||
final sw = Stopwatch()..start();
|
final sw = Stopwatch()..start();
|
||||||
results[step.label] =
|
results[step.label] =
|
||||||
InitializationStepResult$InProgress(step: step);
|
InitializationStepResult$InProgress(step: step);
|
||||||
stepsInProgress.add(step.label);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final rawResult = await step.initialize();
|
final rawResult = await step.initialize();
|
||||||
@@ -158,8 +156,6 @@ class InitializationController<L extends InitializableStepLabel,
|
|||||||
);
|
);
|
||||||
print('STEP FAILED ${step.runtimeType}');
|
print('STEP FAILED ${step.runtimeType}');
|
||||||
rethrow;
|
rethrow;
|
||||||
} finally {
|
|
||||||
stepsInProgress.remove(step.label);
|
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user