Remove unused function
This commit is contained in:
parent
69bee8de7f
commit
7b440e82aa
@ -21,7 +21,6 @@ class FoodEntryBloc extends Bloc<FoodEvent, GlobalEntryState> {
|
||||
on<FoodDeletionEvent>(handleDeleteFoodEvent);
|
||||
on<BarcodeAboutToBeScanned>(handleBarcodeScannedEvent);
|
||||
on<FoodEntryTapped>(handleFoodEntryTapped);
|
||||
on<PermissionException>(handlePermissionException);
|
||||
}
|
||||
void handlePageBeingInitialized(
|
||||
PageBeingInitialized event, Emitter<GlobalEntryState> emit) async {
|
||||
@ -216,14 +215,6 @@ class FoodEntryBloc extends Bloc<FoodEvent, GlobalEntryState> {
|
||||
|
||||
emit(GlobalEntryState(foodEntries: state.foodEntries));
|
||||
}
|
||||
|
||||
void handlePermissionException(
|
||||
PermissionException event, Emitter<GlobalEntryState> emit) async {
|
||||
emit(GlobalEntryState(
|
||||
foodEntries: state.foodEntries,
|
||||
appError:
|
||||
GlobalAppError(GlobalAppErrorType.errCameraPermissionDenied)));
|
||||
}
|
||||
}
|
||||
|
||||
class FoodEvent {
|
||||
|
Loading…
Reference in New Issue
Block a user