mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-04-11 03:50:41 +00:00
removed redundant default cases
This commit is contained in:
parent
beee9d8a6e
commit
8a41ebcb29
2 changed files with 1 additions and 4 deletions
|
@ -8,7 +8,7 @@ typedef MeteringScreenLayoutConfig = Map<MeteringScreenLayoutFeature, bool>;
|
||||||
|
|
||||||
extension MeteringScreenLayoutConfigJson on MeteringScreenLayoutConfig {
|
extension MeteringScreenLayoutConfigJson on MeteringScreenLayoutConfig {
|
||||||
static MeteringScreenLayoutConfig fromJson(Map<String, dynamic> data) {
|
static MeteringScreenLayoutConfig fromJson(Map<String, dynamic> data) {
|
||||||
int? migratedIndex(MeteringScreenLayoutFeature feature) {
|
int migratedIndex(MeteringScreenLayoutFeature feature) {
|
||||||
switch (feature) {
|
switch (feature) {
|
||||||
case MeteringScreenLayoutFeature.extremeExposurePairs:
|
case MeteringScreenLayoutFeature.extremeExposurePairs:
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -16,8 +16,6 @@ extension MeteringScreenLayoutConfigJson on MeteringScreenLayoutConfig {
|
||||||
return 1;
|
return 1;
|
||||||
case MeteringScreenLayoutFeature.equipmentProfiles:
|
case MeteringScreenLayoutFeature.equipmentProfiles:
|
||||||
return 3;
|
return 3;
|
||||||
default:
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,6 @@ class CameraContainerBloc extends EvSourceBlocBase<CameraContainerEvent, CameraC
|
||||||
case communication_states.SettingsClosedState():
|
case communication_states.SettingsClosedState():
|
||||||
_settingsOpened = false;
|
_settingsOpened = false;
|
||||||
add(const InitializeEvent());
|
add(const InitializeEvent());
|
||||||
default:
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue