Skip to content

Commit

Permalink
[refact] : #83 관심사 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
SsongSik committed May 6, 2023
1 parent 6d62c4a commit 208a789
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ interface FoodRepository {
suspend fun getCurrentWidgetType(): Flow<String?>

//Room
suspend fun insertFoods(restaurant: Restaurant)

suspend fun deleteFoods(restaurant: Restaurant)

//Room PagingData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 208a789

Please sign in to comment.