Skip to content

Commit a88fb8c

Browse files
committed
[feat] delete unnecessary logic
1 parent acdaa8b commit a88fb8c

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/main/java/org/hankki/hankkiserver/api/store/service/StoreFinder.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import org.hankki.hankkiserver.domain.store.repository.StoreRepository;
88
import org.springframework.stereotype.Component;
99

10-
import java.util.Optional;
11-
1210
@Component
1311
@RequiredArgsConstructor
1412
public class StoreFinder {
@@ -28,8 +26,4 @@ protected Store findByIdWithHeartAndIsDeletedFalse(final Long id) {
2826
return storeRepository.findByIdWithHeartAndIsDeletedFalse(id)
2927
.orElseThrow(() -> new NotFoundException(StoreErrorCode.STORE_NOT_FOUND));
3028
}
31-
32-
public Optional<Store> findStoreWithLatitudeAndLongitude(Double latitude, Double longitude) {
33-
return storeRepository.findByPoint_LatitudeAndPoint_Longitude(latitude, longitude);
34-
}
3529
}

src/main/java/org/hankki/hankkiserver/domain/store/repository/StoreRepository.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ public interface StoreRepository extends JpaRepository<Store, Long> {
1212

1313
@Query("select s from Store s join fetch s.hearts where s.id = :id and s.isDeleted = false")
1414
Optional<Store> findByIdWithHeartAndIsDeletedFalse(Long id);
15-
16-
Optional<Store> findByPoint_LatitudeAndPoint_Longitude(Double latitude, Double longitude);
1715
}

0 commit comments

Comments
 (0)