remove unused arguments from RestGraphAction private parse method
Original commit: elastic/x-pack-elasticsearch@f0f41fb0a7
This commit is contained in:
parent
dcf5ce7a4e
commit
2c5aeba418
|
@ -115,7 +115,7 @@ public class RestGraphAction extends XPackRestHandler {
|
|||
|
||||
if (token == XContentParser.Token.START_ARRAY) {
|
||||
if (VERTICES_FIELD.match(fieldName)) {
|
||||
parseVertices(parser, context, currentHop, graphRequest);
|
||||
parseVertices(parser, currentHop);
|
||||
}
|
||||
} else if (token == XContentParser.Token.START_OBJECT) {
|
||||
if (QUERY_FIELD.match(fieldName)) {
|
||||
|
@ -135,12 +135,10 @@ public class RestGraphAction extends XPackRestHandler {
|
|||
} else {
|
||||
throw new ElasticsearchParseException("Illegal property in graph definition " + fieldName, token.name());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void parseVertices(XContentParser parser, QueryParseContext context, Hop currentHop, GraphExploreRequest graphRequest)
|
||||
private void parseVertices(XContentParser parser, Hop currentHop)
|
||||
throws IOException {
|
||||
XContentParser.Token token;
|
||||
|
||||
|
@ -324,7 +322,6 @@ public class RestGraphAction extends XPackRestHandler {
|
|||
} else {
|
||||
throw new ElasticsearchParseException("Unknown object property: [" + fieldName + "]");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue