aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-12-08 14:38:52 -0800
committerGravatar yang-g <yangg@google.com>2015-12-08 14:38:52 -0800
commitbd000af27896441b34b3d1983db5ea1ec645cc43 (patch)
treedf9e852991348d49497be5e5a9e2b0786861da86 /src/core
parent0edc362f91dea54f0b094daddc589b25b94f31bb (diff)
parent5ecd75fdf6f047f251bea8b61219687b72102a4d (diff)
merge with head
Diffstat (limited to 'src/core')
-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;
-}