Remove unused function

This commit is contained in:
Marco 2024-12-22 18:23:25 +01:00
parent 69bee8de7f
commit 7b440e82aa

View File

@ -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 {