aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-02-18 15:51:50 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-02-18 15:51:50 -0800
commit2d11c93ab548e359414efdbc5fcd013e8c5779ff (patch)
treec22a17bc2a71f9d5c42cb1b1a1e232c9913d5b74 /src/cpp
parentd24d13d6eb295f263ffca3def45dd6dc4b053ced (diff)
parentc7851cf0554dde7d04526de8637217b8873c9300 (diff)
Merge github.com:grpc/grpc into an-update-on-c++
Diffstat (limited to 'src/cpp')
-rw-r--r--src/cpp/client/client_unary_call.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/cpp/client/client_unary_call.cc b/src/cpp/client/client_unary_call.cc
index a5ef989946..684b3cbadb 100644
--- a/src/cpp/client/client_unary_call.cc
+++ b/src/cpp/client/client_unary_call.cc
@@ -61,30 +61,4 @@ Status BlockingUnaryCall(ChannelInterface *channel, const RpcMethod &method,
return status;
}
-class ClientAsyncRequest final : public CallOpBuffer {
- public:
- bool FinalizeResult(void **tag, bool *status) override {
- bool r = CallOpBuffer::FinalizeResult(tag, status);
- delete this;
- return r;
- }
-};
-
-void AsyncUnaryCall(ChannelInterface *channel, const RpcMethod &method,
- ClientContext *context,
- const google::protobuf::Message &request,
- google::protobuf::Message *result, Status *status,
- CompletionQueue *cq, void *tag) {
- ClientAsyncRequest *buf = new ClientAsyncRequest;
- buf->Reset(tag);
- Call call(channel->CreateCall(method, context, cq));
- buf->AddSendInitialMetadata(context);
- buf->AddSendMessage(request);
- buf->AddRecvInitialMetadata(context);
- buf->AddRecvMessage(result);
- buf->AddClientSendClose();
- buf->AddClientRecvStatus(context, status);
- call.PerformOps(buf);
-}
-
} // namespace grpc