Remove exec_ctx from slice and slice buffer

pull/14890/head
Yash Tibrewal 7 years ago
parent b801c867e8
commit 5dc577b517
  1. 5
      src/core/lib/slice/slice.cc
  2. 2
      src/core/lib/slice/slice_buffer.cc

@ -68,10 +68,7 @@ grpc_slice grpc_slice_ref(grpc_slice slice) {
}
/* Public API */
void grpc_slice_unref(grpc_slice slice) {
grpc_core::ExecCtx exec_ctx;
grpc_slice_unref_internal(slice);
}
void grpc_slice_unref(grpc_slice slice) { grpc_slice_unref_internal(slice); }
/* grpc_slice_from_static_string support structure - a refcount that does
nothing */

@ -75,7 +75,6 @@ void grpc_slice_buffer_destroy_internal(grpc_slice_buffer* sb) {
}
void grpc_slice_buffer_destroy(grpc_slice_buffer* sb) {
grpc_core::ExecCtx exec_ctx;
grpc_slice_buffer_destroy_internal(sb);
}
@ -176,7 +175,6 @@ void grpc_slice_buffer_reset_and_unref_internal(grpc_slice_buffer* sb) {
}
void grpc_slice_buffer_reset_and_unref(grpc_slice_buffer* sb) {
grpc_core::ExecCtx exec_ctx;
grpc_slice_buffer_reset_and_unref_internal(sb);
}

Loading…
Cancel
Save