aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/ext/grpc/rb_byte_buffer.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-01-23 07:48:19 -0800
committerGravatar Craig Tiller <ctiller@google.com>2017-01-23 07:48:19 -0800
commitc7342a01bb069fcff6df0e22f6c2a403010998a1 (patch)
treed938c40ce9d880c13be1e928c1e3bc5de65ca1b9 /src/ruby/ext/grpc/rb_byte_buffer.c
parenta60b31d0a4f24ec061cc3dd9129f93a0319f1429 (diff)
parent5e01e2ac977655aa074faf7fde0a74298f5e4c55 (diff)
Merge branch 'revert-8842-metadata_filter' of github.com:grpc/grpc into rollfwd
Diffstat (limited to 'src/ruby/ext/grpc/rb_byte_buffer.c')
-rw-r--r--src/ruby/ext/grpc/rb_byte_buffer.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/ruby/ext/grpc/rb_byte_buffer.c b/src/ruby/ext/grpc/rb_byte_buffer.c
index 65fa2f2cf6..47fd6d9120 100644
--- a/src/ruby/ext/grpc/rb_byte_buffer.c
+++ b/src/ruby/ext/grpc/rb_byte_buffer.c
@@ -68,10 +68,3 @@ VALUE grpc_rb_byte_buffer_to_s(grpc_byte_buffer *buffer) {
grpc_byte_buffer_reader_destroy(&reader);
return rb_string;
}
-
-VALUE grpc_rb_slice_to_ruby_string(grpc_slice slice) {
- if (GRPC_SLICE_START_PTR(slice) == NULL) {
- rb_raise(rb_eRuntimeError, "attempt to convert uninitialized grpc_slice to ruby string");
- }
- return rb_str_new((char*)GRPC_SLICE_START_PTR(slice), GRPC_SLICE_LENGTH(slice));
-}