Browse Source

SONAR-13104 drop unused code

tags/8.3.0.34182
Jacek 4 years ago
parent
commit
8abccea1b9

+ 0
- 10
server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java View File

@@ -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.*";

Loading…
Cancel
Save