Skip to content

Commit

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

import com.gabojait.gabojaitspring.common.response.PageData;
import com.gabojait.gabojaitspring.api.dto.favorite.request.FavoriteUpdateRequest;
import com.gabojait.gabojaitspring.api.dto.favorite.response.FavoriteTeamPageResponse;
import com.gabojait.gabojaitspring.api.dto.favorite.response.FavoriteUserPageResponse;
import com.gabojait.gabojaitspring.common.exception.CustomException;
import com.gabojait.gabojaitspring.common.response.PageData;
import com.gabojait.gabojaitspring.domain.favorite.Favorite;
import com.gabojait.gabojaitspring.domain.profile.Skill;
import com.gabojait.gabojaitspring.domain.team.Team;
import com.gabojait.gabojaitspring.domain.user.User;
import com.gabojait.gabojaitspring.common.exception.CustomException;
import com.gabojait.gabojaitspring.repository.favorite.FavoriteRepository;
import com.gabojait.gabojaitspring.repository.profile.SkillRepository;
import com.gabojait.gabojaitspring.repository.team.TeamRepository;
Expand Down Expand Up @@ -134,19 +134,6 @@ public PageData<List<FavoriteTeamPageResponse>> findPageFavoriteTeam(long userId
return new PageData<>(responses, favorites.getTotal());
}

/**
* 회원 단건 조회 |
* 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 edf4588

Please sign in to comment.