Удалил неиспользуемый метод
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2022-12-20 22:22:23 +03:00
parent a611e46479
commit 4877a45c67
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6
4 changed files with 0 additions and 14 deletions

View File

@ -20,8 +20,6 @@ public interface DiscussionRepository {
Optional<Discussion> findById(String discussionId); Optional<Discussion> findById(String discussionId);
void deleteById(String discussionId);
List<Discussion> findAll(); List<Discussion> findAll();
List<Discussion> findAllById(Set<String> discussionIds); List<Discussion> findAllById(Set<String> discussionIds);

View File

@ -37,6 +37,4 @@ public interface DiscussionService {
List<Discussion> getAll(); List<Discussion> getAll();
void deleteById(String discussionId);
} }

View File

@ -300,11 +300,6 @@ public class DiscussionServiceImpl implements DiscussionService {
return repository.findAll(); return repository.findAll();
} }
@Override
public void deleteById(String discussionId) {
repository.deleteById(discussionId);
}
/** /**
* Уведомляет пользователя, если его никнейм упоминается в комментарии. * Уведомляет пользователя, если его никнейм упоминается в комментарии.
*/ */

View File

@ -37,11 +37,6 @@ public class DiscussionRepositoryImpl implements DiscussionRepository {
return jpaRepository.findById(discussionId); return jpaRepository.findById(discussionId);
} }
@Override
public void deleteById(String discussionId) {
jpaRepository.deleteById(discussionId);
}
@Override @Override
public List<Discussion> findAll() { public List<Discussion> findAll() {
return jpaRepository.findAll(); return jpaRepository.findAll();