aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/grpc/grpc.h16
-rw-r--r--src/core/surface/call.c11
2 files changed, 0 insertions, 27 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h
index 45915cbfad..34c75810b7 100644
--- a/include/grpc/grpc.h
+++ b/include/grpc/grpc.h
@@ -325,22 +325,6 @@ grpc_call_error grpc_call_start_invoke(grpc_call *call,
void *metadata_read_tag,
void *finished_tag, gpr_uint32 flags);
-/* DEPRECATED: users should use grpc_call_server_accept, and
- grpc_call_server_end_initial_metadata instead now.
-
-
- Accept an incoming RPC, binding a completion queue to it.
- To be called after adding metadata to the call, but before sending
- messages.
- flags is a bit-field combination of the write flags defined above.
- REQUIRES: Can be called at most once per call.
- Can only be called on the server.
- Produces a GRPC_FINISHED event with finished_tag when the call has been
- completed (there may be other events for the call pending at this
- time) */
-grpc_call_error grpc_call_accept(grpc_call *call, grpc_completion_queue *cq,
- void *finished_tag, gpr_uint32 flags);
-
/* Accept an incoming RPC, binding a completion queue to it.
To be called before sending or receiving messages.
REQUIRES: Can be called at most once per call.
diff --git a/src/core/surface/call.c b/src/core/surface/call.c
index 0d72bf42fb..db6dbe04e4 100644
--- a/src/core/surface/call.c
+++ b/src/core/surface/call.c
@@ -535,17 +535,6 @@ grpc_call_error grpc_call_server_end_initial_metadata(grpc_call *call,
return GRPC_CALL_OK;
}
-grpc_call_error grpc_call_accept(grpc_call *call, grpc_completion_queue *cq,
- void *finished_tag, gpr_uint32 flags) {
- grpc_call_error err;
-
- err = grpc_call_server_accept(call, cq, finished_tag);
- if (err != GRPC_CALL_OK) return err;
- err = grpc_call_server_end_initial_metadata(call, flags);
- if (err != GRPC_CALL_OK) return err;
- return GRPC_CALL_OK;
-}
-
static void done_writes_done(void *user_data, grpc_op_error error) {
grpc_call *call = user_data;
void *tag = call->write_tag;