Skip to content

Commit

Permalink
chore: 사용하지 않는 deleteByMemberId() 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
seokjin8678 committed Apr 25, 2024
1 parent 912eac5 commit 8f1ebae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ public interface RefreshTokenRepository extends Repository<RefreshToken, UUID> {

Optional<RefreshToken> findById(UUID id);

void deleteByMemberId(Long memberId);

void deleteById(UUID id);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.festago.auth.domain.RefreshToken;
import java.util.HashMap;
import java.util.Objects;
import java.util.Optional;
import java.util.UUID;

Expand All @@ -21,11 +20,6 @@ public Optional<RefreshToken> findById(UUID id) {
return Optional.ofNullable(memory.get(id));
}

@Override
public void deleteByMemberId(Long memberId) {
memory.entrySet().removeIf(it -> Objects.equals(it.getValue().getMemberId(), memberId));
}

@Override
public void deleteById(UUID id) {
memory.remove(id);
Expand Down

0 comments on commit 8f1ebae

Please sign in to comment.