From 58e46acbf719e95e905d4f3688dfe489979caf89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?L=C3=A9o=20Geoffroy?= Date: Thu, 9 Nov 2023 13:08:13 +0100 Subject: [PATCH] NO-JIRA fix code smells --- .../task/projectanalysis/step/PersistLiveMeasuresStep.java | 1 - .../server/measure/ws/SearchHistoryResponseFactory.java | 7 ------- 2 files changed, 8 deletions(-) diff --git a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/PersistLiveMeasuresStep.java b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/PersistLiveMeasuresStep.java index 3b922906b8a..4bfd611069b 100644 --- a/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/PersistLiveMeasuresStep.java +++ b/server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/PersistLiveMeasuresStep.java @@ -92,7 +92,6 @@ import static org.sonar.api.measures.CoreMetrics.STATEMENTS_KEY; import static org.sonar.api.measures.CoreMetrics.TECHNICAL_DEBT_KEY; import static org.sonar.api.measures.CoreMetrics.VIOLATIONS_KEY; import static org.sonar.api.measures.CoreMetrics.VULNERABILITIES_KEY; -import static org.sonar.api.measures.CoreMetrics.WONT_FIX_ISSUES_KEY; import static org.sonar.ce.task.projectanalysis.component.ComponentVisitor.Order.PRE_ORDER; public class PersistLiveMeasuresStep implements ComputationStep { diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/SearchHistoryResponseFactory.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/SearchHistoryResponseFactory.java index 02454a86537..c213cba9922 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/SearchHistoryResponseFactory.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/SearchHistoryResponseFactory.java @@ -109,13 +109,6 @@ class SearchHistoryResponseFactory { return analysis; } - private UnaryOperator clearMetric() { - return metric -> { - measure.clear(); - return metric; - }; - } - private UnaryOperator clearValue() { return analysis -> { value.clear(); -- 2.39.5