aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2015-12-08 14:36:13 -0800
committerGravatar Yang Gao <yangg@google.com>2015-12-08 14:36:13 -0800
commit5ecd75fdf6f047f251bea8b61219687b72102a4d (patch)
tree9a4a5b821407e1918e015c9de0eca875075d33b3 /src
parent29318d7611df65bfb5d830531dde30e2f3659bb1 (diff)
parentf99dbf5d08290b141946ac8e728337c3047cbcbe (diff)
Merge pull request #4341 from sreecha/slice_test
Improve test coverage for Slice test
Diffstat (limited to 'src')
-rw-r--r--src/core/support/slice.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/core/support/slice.c b/src/core/support/slice.c
index 5b091f17b0..9f0ded4932 100644
--- a/src/core/support/slice.c
+++ b/src/core/support/slice.c
@@ -341,10 +341,3 @@ int gpr_slice_str_cmp(gpr_slice a, const char *b) {
if (d != 0) return d;
return memcmp(GPR_SLICE_START_PTR(a), b, b_length);
}
-
-char *gpr_slice_to_cstring(gpr_slice slice) {
- char *result = gpr_malloc(GPR_SLICE_LENGTH(slice) + 1);
- memcpy(result, GPR_SLICE_START_PTR(slice), GPR_SLICE_LENGTH(slice));
- result[GPR_SLICE_LENGTH(slice)] = '\0';
- return result;
-}