remove unused arguments from RestGraphAction private parse method
Original commit: elastic/x-pack-elasticsearch@f0f41fb0a72ce7cb6b4e4599f180bc336b7d1e62
@@ -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 + "]");
}
-
}
}
}
