]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA fix code smells
authorLéo Geoffroy <leo.geoffroy@sonarsource.com>
Thu, 9 Nov 2023 12:08:13 +0000 (13:08 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 9 Nov 2023 20:02:39 +0000 (20:02 +0000)
server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/PersistLiveMeasuresStep.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/SearchHistoryResponseFactory.java

index 3b922906b8a4115d5df8ca913d9f9269ca1dcda4..4bfd611069bdf1c695b5a796b320fff05c1517e5 100644 (file)
@@ -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 {
index 02454a865377980c7fd624086d4d6124a668869b..c213cba9922866f74e2e345570db090ca298362b 100644 (file)
@@ -109,13 +109,6 @@ class SearchHistoryResponseFactory {
     return analysis;
   }
 
-  private UnaryOperator<MetricDto> clearMetric() {
-    return metric -> {
-      measure.clear();
-      return metric;
-    };
-  }
-
   private UnaryOperator<SnapshotDto> clearValue() {
     return analysis -> {
       value.clear();