From 208a789e0f8d7fa466ede4f170565649ad7f3950 Mon Sep 17 00:00:00 2001 From: SsongSik Date: Sun, 7 May 2023 01:24:10 +0900 Subject: [PATCH] =?UTF-8?q?[refact]=20:=20#83=20=EA=B4=80=EC=8B=AC?= =?UTF-8?q?=EC=82=AC=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../myongsikandroid/data/repository/food/FoodRepository.kt | 2 -- .../data/repository/food/FoodRepositoryImpl.kt | 5 ----- 2 files changed, 7 deletions(-) diff --git a/app/src/main/java/com/myongsik/myongsikandroid/data/repository/food/FoodRepository.kt b/app/src/main/java/com/myongsik/myongsikandroid/data/repository/food/FoodRepository.kt index 1ff1b65a..7f0dd153 100644 --- a/app/src/main/java/com/myongsik/myongsikandroid/data/repository/food/FoodRepository.kt +++ b/app/src/main/java/com/myongsik/myongsikandroid/data/repository/food/FoodRepository.kt @@ -54,8 +54,6 @@ interface FoodRepository { suspend fun getCurrentWidgetType(): Flow //Room - suspend fun insertFoods(restaurant: Restaurant) - suspend fun deleteFoods(restaurant: Restaurant) //Room PagingData diff --git a/app/src/main/java/com/myongsik/myongsikandroid/data/repository/food/FoodRepositoryImpl.kt b/app/src/main/java/com/myongsik/myongsikandroid/data/repository/food/FoodRepositoryImpl.kt index ca9a8819..7c3e7ada 100644 --- a/app/src/main/java/com/myongsik/myongsikandroid/data/repository/food/FoodRepositoryImpl.kt +++ b/app/src/main/java/com/myongsik/myongsikandroid/data/repository/food/FoodRepositoryImpl.kt @@ -295,11 +295,6 @@ class FoodRepositoryImpl @Inject constructor( } } - //장소 찜꽁리스트에 저장 - override suspend fun insertFoods(restaurant: Restaurant) { - db.restaurantDao().insertGoodFood(restaurant) - } - //장소 찜콩리스트에서 삭제 override suspend fun deleteFoods(restaurant: Restaurant) { db.restaurantDao().deleteBook(restaurant)