Skip to content

Commit

Permalink
[REFACTOR] remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
nogamsung committed Feb 7, 2024
1 parent a760214 commit af248fc
Showing 1 changed file with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package com.gabojait.gabojaitspring.api.service.offer;

import com.gabojait.gabojaitspring.common.response.PageData;
import com.gabojait.gabojaitspring.api.dto.offer.request.OfferCreateRequest;
import com.gabojait.gabojaitspring.api.dto.offer.request.OfferDecideRequest;
import com.gabojait.gabojaitspring.api.dto.offer.response.OfferPageResponse;
import com.gabojait.gabojaitspring.api.service.notification.NotificationService;
import com.gabojait.gabojaitspring.common.exception.CustomException;
import com.gabojait.gabojaitspring.common.response.PageData;
import com.gabojait.gabojaitspring.domain.offer.Offer;
import com.gabojait.gabojaitspring.domain.offer.OfferedBy;
import com.gabojait.gabojaitspring.domain.profile.Skill;
import com.gabojait.gabojaitspring.domain.team.Team;
import com.gabojait.gabojaitspring.domain.team.TeamMember;
import com.gabojait.gabojaitspring.domain.user.Position;
import com.gabojait.gabojaitspring.domain.user.User;
import com.gabojait.gabojaitspring.common.exception.CustomException;
import com.gabojait.gabojaitspring.repository.offer.OfferRepository;
import com.gabojait.gabojaitspring.repository.profile.SkillRepository;
import com.gabojait.gabojaitspring.repository.team.TeamMemberRepository;
Expand Down Expand Up @@ -284,19 +284,6 @@ private TeamMember findCurrentTeamMemberFetchTeam(long userId) {
});
}

/**
* 회원 단건 조회 |
* 404(USER_NOT_FOUND)
* @param username 회원 아이디
* @return 회원
*/
private User findUser(String username) {
return userRepository.findByUsername(username)
.orElseThrow(() -> {
throw new CustomException(USER_NOT_FOUND);
});
}

/**
* 회원 단건 조회 |
* 404(USER_NOT_FOUND)
Expand Down

0 comments on commit af248fc

Please sign in to comment.