From 7b440e82aa07382285e6064716a41584d8d2c129 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 22 Dec 2024 18:23:25 +0100 Subject: [PATCH] Remove unused function --- lib/food_entry/food_entry_bloc.dart | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/food_entry/food_entry_bloc.dart b/lib/food_entry/food_entry_bloc.dart index 7647977..6f86f01 100644 --- a/lib/food_entry/food_entry_bloc.dart +++ b/lib/food_entry/food_entry_bloc.dart @@ -21,7 +21,6 @@ class FoodEntryBloc extends Bloc { on(handleDeleteFoodEvent); on(handleBarcodeScannedEvent); on(handleFoodEntryTapped); - on(handlePermissionException); } void handlePageBeingInitialized( PageBeingInitialized event, Emitter emit) async { @@ -216,14 +215,6 @@ class FoodEntryBloc extends Bloc { emit(GlobalEntryState(foodEntries: state.foodEntries)); } - - void handlePermissionException( - PermissionException event, Emitter emit) async { - emit(GlobalEntryState( - foodEntries: state.foodEntries, - appError: - GlobalAppError(GlobalAppErrorType.errCameraPermissionDenied))); - } } class FoodEvent {