Skip to content

refactor: 쓰이지 않는 코드를 지운다 - #149

Merged
ff1451 merged 1 commit into
mainfrom
refactor/remove-dead-code
Oct 18, 2026
Merged

ff1451 merged 1 commit into
mainfrom
refactor/remove-dead-code

Conversation

@ff1451

@ff1451 ff1451 commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

요약

동작을 바꾸지 않는 정리. 모두 src/main·src/test 전체에서 참조가 없음을 확인했다.

대상 비고
HomeExceptionType.INVALID_GOOGLE_FORM_URL, MemberExceptionType.INVALID_PHOTO 던지는 곳 없음
ReservationGroup.includesWeekday() 호출부 없음
SoftDeletableEntity.isDeleted() 호출부 없음. @SQLRestriction 때문에 조회된 엔티티에서는 항상 false였다
S3Config.s3Client() 빈 + 장부 테스트의 @MockitoBean S3Client 주입받는 곳 없음(증빙이 링크 방식으로 바뀐 V27 이후). S3Presigner는 계속 쓴다
Game game = findGameOrThrow(...) 지역 변수 3개 변수만 지우고 404를 내는 존재 확인 호출은 남겼다
AdminGameService의 "목록 캐시 무효화" 주석 그런 캐시가 없다

테스트

  • 로컬 전체 ./gradlew test: 535건 중 534 통과, 1 스킵.

- 참조가 없는 에러 상수 INVALID_GOOGLE_FORM_URL, INVALID_PHOTO
- 호출부가 없는 ReservationGroup.includesWeekday(), SoftDeletableEntity.isDeleted()
  (isDeleted는 @SQLRestriction 때문에 조회된 엔티티에서 항상 false였다)
- 아무도 주입받지 않는 S3Client 빈과 테스트의 목(같은 SDK의 S3Presigner는 계속 쓴다)
- 대입만 하고 쓰지 않는 지역 변수 3개(게임 존재 확인 호출은 남긴다)
- 존재하지 않는 캐시를 무효화한다는 주석
@coderabbitai

coderabbitai Bot commented Oct 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 33 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e334c764-0921-4e45-a287-f833c584b881
📥 Commits

Reviewing files that changed from the base of the PR and between 40063c7 and e0fbc2c.

📒 Files selected for processing: 8
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/game/service/AdminGameMemberService.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/game/service/AdminGameService.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/global/SoftDeletableEntity.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/global/config/S3Config.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/home/exception/HomeExceptionType.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/member/exception/MemberExceptionType.java
  • src/main/java/com/bcsdlab/bcsdinternalapiv2/reservation/model/ReservationGroup.java
  • src/test/java/com/bcsdlab/bcsdinternalapiv2/ledger/LedgerIntegrationTestSupport.java
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ff1451
ff1451 merged commit 68e7e3c into main Oct 18, 2026
2 checks passed
@ff1451
ff1451 deleted the refactor/remove-dead-code branch October 18, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant