From 2c5aeba418ede668e0b6400c404d1403cd3a99c0 Mon Sep 17 00:00:00 2001 From: javanna Date: Thu, 12 Jan 2017 12:11:08 +0100 Subject: [PATCH] remove unused arguments from RestGraphAction private parse method Original commit: elastic/x-pack-elasticsearch@f0f41fb0a72ce7cb6b4e4599f180bc336b7d1e62 --- .../xpack/graph/rest/action/RestGraphAction.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/elasticsearch/src/main/java/org/elasticsearch/xpack/graph/rest/action/RestGraphAction.java b/elasticsearch/src/main/java/org/elasticsearch/xpack/graph/rest/action/RestGraphAction.java index cdec76cc546..b9e5e0e466a 100644 --- a/elasticsearch/src/main/java/org/elasticsearch/xpack/graph/rest/action/RestGraphAction.java +++ b/elasticsearch/src/main/java/org/elasticsearch/xpack/graph/rest/action/RestGraphAction.java @@ -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 + "]"); } - } } }