aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2020-03-19 10:19:06 +0100
committersonartech <sonartech@sonarsource.com>2020-03-30 20:03:43 +0000
commit8abccea1b9f0fc662bd11ac5f101c0b942bd0eac (patch)
tree700d258221f1326541620119245b9fb08f1802b1 /server
parent88597f3717a873db1373e4d4b2bcca7f5fd74425 (diff)
downloadsonarqube-8abccea1b9f0fc662bd11ac5f101c0b942bd0eac.tar.gz
sonarqube-8abccea1b9f0fc662bd11ac5f101c0b942bd0eac.zip
SONAR-13104 drop unused code
Diffstat (limited to 'server')
-rw-r--r--server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java b/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java
index 431850a80ac..ef60ff462ba 100644
--- a/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java
+++ b/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java
@@ -89,7 +89,6 @@ import org.sonar.server.view.index.ViewIndexDefinition;
import static com.google.common.base.Preconditions.checkState;
import static java.lang.String.format;
-import static java.util.Arrays.stream;
import static java.util.Collections.singletonList;
import static java.util.stream.Collectors.toList;
import static org.elasticsearch.index.query.QueryBuilders.boolQuery;
@@ -256,15 +255,6 @@ public class IssueIndex {
public int getSize() {
return size;
}
-
- public static Facet of(String name) {
- return stream(values())
- .filter(f -> f.getName().equals(name))
- .reduce((a, b) -> {
- throw new IllegalStateException("Multiple facets with same name: " + a + ", " + b);
- })
- .orElseThrow(() -> new IllegalArgumentException(String.format("Facet name '%s' hasn't been found", name)));
- }
}
private static final String SUBSTRING_MATCH_REGEXP = ".*%s.*";