From 4877a45c67277ac95aaf5038304b9a094b09aec2 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Tue, 20 Dec 2022 22:22:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D1=83=D0=B5?= =?UTF-8?q?=D0=BC=D1=8B=D0=B9=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bot/gitlab/context/repository/DiscussionRepository.java | 2 -- .../bot/gitlab/context/service/DiscussionService.java | 2 -- .../bot/gitlab/core/service/impl/DiscussionServiceImpl.java | 5 ----- .../bot/gitlab/data/impl/DiscussionRepositoryImpl.java | 5 ----- 4 files changed, 14 deletions(-) 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();