Skip to content

Commit 253f714

Browse files
committed
Remove unused code
1 parent 2abe636 commit 253f714

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

x-pack/plugin/logsdb/src/javaRestTest/java/org/elasticsearch/xpack/logsdb/qa/DataGenerationHelper.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.elasticsearch.xpack.spatial.datageneration.ShapeDataSourceHandler;
2727

2828
import java.io.IOException;
29-
import java.util.ArrayList;
3029
import java.util.Arrays;
3130
import java.util.List;
3231
import java.util.Map;
@@ -143,17 +142,4 @@ void generateDocument(XContentBuilder document, Map<String, Object> additionalFi
143142

144143
document.map(generated);
145144
}
146-
147-
List<Boolean> isNested(String[] path) {
148-
List<Boolean> result = new ArrayList<>();
149-
Map<String, Template.Entry> children = template.template();
150-
for (int i = 0; i < path.length - 1; i++) {
151-
var field = path[i];
152-
var object = (Template.Object) children.get(field);
153-
result.add(object.nested());
154-
children = object.children();
155-
}
156-
assert children.get(path[path.length - 1]) instanceof Template.Leaf;
157-
return result;
158-
}
159145
}

x-pack/plugin/logsdb/src/javaRestTest/java/org/elasticsearch/xpack/logsdb/qa/StandardVersusLogsIndexModeChallengeRestIT.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -339,18 +339,6 @@ protected XContentBuilder generateDocument(final Instant timestamp) throws IOExc
339339
return document;
340340
}
341341

342-
@SuppressWarnings("unchecked")
343-
private List<Map<String, Object>> hits(QueryBuilder query) throws IOException {
344-
final SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder().query(query)
345-
.size(10);
346-
347-
Response response = queryBaseline(searchSourceBuilder);
348-
349-
final Map<String, Object> map = XContentHelper.convertToMap(XContentType.JSON.xContent(), response.getEntity().getContent(), true);
350-
final Map<String, Object> hitsMap = (Map<String, Object>) map.get("hits");
351-
return (List<Map<String, Object>>) hitsMap.get("hits");
352-
}
353-
354342
@SuppressWarnings("unchecked")
355343
private static List<Map<String, Object>> getQueryHits(final Response response) throws IOException {
356344
final Map<String, Object> map = XContentHelper.convertToMap(XContentType.JSON.xContent(), response.getEntity().getContent(), true);

0 commit comments

Comments
 (0)