From b962a7b8e5fa362ebf89f3a33cc25c4a0cfa14b3 Mon Sep 17 00:00:00 2001 From: pierre-maraval Date: Thu, 24 Oct 2024 09:13:03 +0200 Subject: [PATCH] =?UTF-8?q?FIX=20:=20Suppression=20code=20obsol=C3=A8te?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/abes/logskbart/repository/LogKbartRepository.java | 1 - src/main/java/fr/abes/logskbart/service/LogsService.java | 5 ----- 2 files changed, 6 deletions(-) diff --git a/src/main/java/fr/abes/logskbart/repository/LogKbartRepository.java b/src/main/java/fr/abes/logskbart/repository/LogKbartRepository.java index 72dde8f..47dbad4 100644 --- a/src/main/java/fr/abes/logskbart/repository/LogKbartRepository.java +++ b/src/main/java/fr/abes/logskbart/repository/LogKbartRepository.java @@ -1,7 +1,6 @@ package fr.abes.logskbart.repository; import fr.abes.logskbart.entity.LogKbart; -import org.springframework.data.domain.*; import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; import org.springframework.stereotype.Repository; diff --git a/src/main/java/fr/abes/logskbart/service/LogsService.java b/src/main/java/fr/abes/logskbart/service/LogsService.java index ed7affa..ab223ed 100644 --- a/src/main/java/fr/abes/logskbart/service/LogsService.java +++ b/src/main/java/fr/abes/logskbart/service/LogsService.java @@ -20,7 +20,6 @@ @Service @Slf4j public class LogsService { - private static final Integer MAXSIZE = 5000; private final LogKbartRepository repository; public LogsService(LogKbartRepository logKbartRepository) { @@ -68,8 +67,4 @@ public void saveAll(List logKbarts) { repository.saveAll(logKbarts); log.debug("Save done !"); } - - public void save(LogKbart logKbart) { - repository.save(logKbart); - } }