Skip to content

refactor: 호출처 없는 메서드·저장소 조회·클래스와 초기 생성 안내문을 지움 - #714

Merged
yoon6yo merged 1 commit into
mainfrom
refactor/v3.3.73-remove-unreferenced-code
Oct 14, 2026
Merged

yoon6yo merged 1 commit into
mainfrom
refactor/v3.3.73-remove-unreferenced-code

Conversation

@yoon6yo

@yoon6yo yoon6yo commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

무엇을

운영 코드 어디에서도 부르지 않는 코드를 지웠습니다. 동작 변화는 없습니다.

  • 메서드: PortRequestService.getPortRequestsByResourceGroupId, SaveRequestResponseDTO.fromEntityWithPortMappings, Request.updateResourceGroup·updateContainerImage, RequestQueryService.getActiveContainers, User.getUbuntuGidsOfGroups, JwtProvider.validateAccessToken, BaseTimeEntity.setUpdatedAt
  • 저장소 조회 5개: PortRequestRepository.findByResourceGroupRsgroupId, ContainerImageRepository.findByImageNameAndImageVersion, ChangeRequestRepository.findAllByRequestedBy_UserIdAndStatus, RequestRepository.existsByUser_UbuntuUsernameAndUser_UserId, UserRepository.findByUbuntuUsername
  • 클래스 4개: UserGroupUpdateRequestDTO, ForbiddenException, InternalServerException, UserAuthentication
  • 기타: gitignore 대상인데 추적되던 HELP.md, SlackApiService의 군더더기 주석, 쓰이지 않는 import

테스트

  • getActiveContainers 테스트 1건을 메서드와 함께 지웠습니다.
  • JwtProviderTest는 같은 검증을 parseAccessToken으로 부릅니다(validateAccessToken은 이 메서드를 그대로 부르는 껍데기였습니다).
  • AdminModificationCommandServiceTest에서 지운 메서드를 가리키던 확인 두 줄과 원래부터 안 쓰이던 import를 지웠습니다.

확인

  • ./gradlew build 통과, 테스트 1332건 실패 0.

🤖 Generated with Claude Code

- 운영 코드에서 부르지 않는 서비스·엔티티·DTO 메서드 8개와 저장소 조회 5개를 지움
- 참조 없는 클래스 4개(UserGroupUpdateRequestDTO, ForbiddenException, InternalServerException, UserAuthentication)를 지움
- gitignore 대상인데 추적되던 HELP.md와 쓰이지 않는 import를 지움
- 지운 메서드만 부르던 테스트를 정리하고 JwtProviderTest는 parseAccessToken으로 검증함

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yoon6yo
yoon6yo merged commit 505aa33 into main Oct 14, 2026
1 check passed
@yoon6yo
yoon6yo deleted the refactor/v3.3.73-remove-unreferenced-code branch October 14, 2026 02:14
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