From b437341ddc94133083c7413e8cb90951b11149ff Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Sat, 23 Dec 2017 13:35:42 +0200 Subject: [PATCH] Remove old class Original commit: elastic/x-pack-elasticsearch@e075c3b9722a8ca49c67c2ac976f73ae9b36c76c --- .../xpack/qa/sql/embed/CliProtoHandler.java | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 qa/sql/src/main/java/org/elasticsearch/xpack/qa/sql/embed/CliProtoHandler.java diff --git a/qa/sql/src/main/java/org/elasticsearch/xpack/qa/sql/embed/CliProtoHandler.java b/qa/sql/src/main/java/org/elasticsearch/xpack/qa/sql/embed/CliProtoHandler.java deleted file mode 100644 index 3df76b919f7..00000000000 --- a/qa/sql/src/main/java/org/elasticsearch/xpack/qa/sql/embed/CliProtoHandler.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License; - * you may not use this file except in compliance with the Elastic License. - */ -package org.elasticsearch.xpack.qa.sql.embed; - -import org.elasticsearch.client.Client; -import org.elasticsearch.common.settings.Settings; -import org.elasticsearch.rest.RestChannel; -import org.elasticsearch.rest.RestController; -import org.elasticsearch.xpack.sql.cli.net.protocol.Proto; -import org.elasticsearch.xpack.sql.plugin.RestSqlCliAction; - -import java.io.DataInput; -import java.io.IOException; - -import static org.mockito.Mockito.mock; - -class CliProtoHandler extends ProtoHandler { - private final RestSqlCliAction action; - - CliProtoHandler(Client client) { - super(client); - action = new RestSqlCliAction(Settings.EMPTY, mock(RestController.class)); - } - - @Override - protected void handle(RestChannel channel, DataInput in) throws IOException { - action.operation(Proto.INSTANCE.readRequest(in), client).accept(channel); - } -} \ No newline at end of file