HLRC+MINOR: Remove Unused Private Method (#33165)

* This one seems to be unused since 92eb32477
This commit is contained in:
Armin Braun 2018-08-28 07:44:01 +02:00 committed by GitHub
parent 29ba143e2c
commit daee8bd133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -19,7 +19,6 @@
package org.elasticsearch.client; package org.elasticsearch.client;
import org.apache.http.Header;
import org.apache.http.HttpEntity; import org.apache.http.HttpEntity;
import org.elasticsearch.ElasticsearchException; import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.ElasticsearchStatusException; import org.elasticsearch.ElasticsearchStatusException;
@ -1218,15 +1217,6 @@ public class RestHighLevelClient implements Closeable {
} }
} }
private static RequestOptions optionsForHeaders(Header[] headers) {
RequestOptions.Builder options = RequestOptions.DEFAULT.toBuilder();
for (Header header : headers) {
Objects.requireNonNull(header, "header cannot be null");
options.addHeader(header.getName(), header.getValue());
}
return options.build();
}
static boolean convertExistsResponse(Response response) { static boolean convertExistsResponse(Response response) {
return response.getStatusLine().getStatusCode() == 200; return response.getStatusLine().getStatusCode() == 200;
} }