diff --git a/bot-context/src/main/java/dev/struchkov/bot/gitlab/context/repository/DiscussionRepository.java b/bot-context/src/main/java/dev/struchkov/bot/gitlab/context/repository/DiscussionRepository.java index c3a2d9f..2d06dd0 100644 --- a/bot-context/src/main/java/dev/struchkov/bot/gitlab/context/repository/DiscussionRepository.java +++ b/bot-context/src/main/java/dev/struchkov/bot/gitlab/context/repository/DiscussionRepository.java @@ -20,8 +20,6 @@ public interface DiscussionRepository { Optional findById(String discussionId); - void deleteById(String discussionId); - List findAll(); List findAllById(Set discussionIds); diff --git a/bot-context/src/main/java/dev/struchkov/bot/gitlab/context/service/DiscussionService.java b/bot-context/src/main/java/dev/struchkov/bot/gitlab/context/service/DiscussionService.java index c666359..e0a0bfb 100644 --- a/bot-context/src/main/java/dev/struchkov/bot/gitlab/context/service/DiscussionService.java +++ b/bot-context/src/main/java/dev/struchkov/bot/gitlab/context/service/DiscussionService.java @@ -37,6 +37,4 @@ public interface DiscussionService { List getAll(); - void deleteById(String discussionId); - } diff --git a/bot-core/src/main/java/dev/struchkov/bot/gitlab/core/service/impl/DiscussionServiceImpl.java b/bot-core/src/main/java/dev/struchkov/bot/gitlab/core/service/impl/DiscussionServiceImpl.java index 67bc75e..079a5d6 100644 --- a/bot-core/src/main/java/dev/struchkov/bot/gitlab/core/service/impl/DiscussionServiceImpl.java +++ b/bot-core/src/main/java/dev/struchkov/bot/gitlab/core/service/impl/DiscussionServiceImpl.java @@ -300,11 +300,6 @@ public class DiscussionServiceImpl implements DiscussionService { return repository.findAll(); } - @Override - public void deleteById(String discussionId) { - repository.deleteById(discussionId); - } - /** * Уведомляет пользователя, если его никнейм упоминается в комментарии. */ diff --git a/bot-data/src/main/java/dev/struchkov/bot/gitlab/data/impl/DiscussionRepositoryImpl.java b/bot-data/src/main/java/dev/struchkov/bot/gitlab/data/impl/DiscussionRepositoryImpl.java index 3bd1430..f2fa5c5 100644 --- a/bot-data/src/main/java/dev/struchkov/bot/gitlab/data/impl/DiscussionRepositoryImpl.java +++ b/bot-data/src/main/java/dev/struchkov/bot/gitlab/data/impl/DiscussionRepositoryImpl.java @@ -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 findAll() { return jpaRepository.findAll();