Удалил неиспользуемый метод
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a611e46479
commit
4877a45c67
@ -20,8 +20,6 @@ public interface DiscussionRepository {
|
||||
|
||||
Optional<Discussion> findById(String discussionId);
|
||||
|
||||
void deleteById(String discussionId);
|
||||
|
||||
List<Discussion> findAll();
|
||||
|
||||
List<Discussion> findAllById(Set<String> discussionIds);
|
||||
|
@ -37,6 +37,4 @@ public interface DiscussionService {
|
||||
|
||||
List<Discussion> getAll();
|
||||
|
||||
void deleteById(String discussionId);
|
||||
|
||||
}
|
||||
|
@ -300,11 +300,6 @@ public class DiscussionServiceImpl implements DiscussionService {
|
||||
return repository.findAll();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteById(String discussionId) {
|
||||
repository.deleteById(discussionId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Уведомляет пользователя, если его никнейм упоминается в комментарии.
|
||||
*/
|
||||
|
@ -37,11 +37,6 @@ public class DiscussionRepositoryImpl implements DiscussionRepository {
|
||||
return jpaRepository.findById(discussionId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteById(String discussionId) {
|
||||
jpaRepository.deleteById(discussionId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Discussion> findAll() {
|
||||
return jpaRepository.findAll();
|
||||
|
Loading…
Reference in New Issue
Block a user