diff options
author | 2015-12-08 14:38:52 -0800 | |
---|---|---|
committer | 2015-12-08 14:38:52 -0800 | |
commit | bd000af27896441b34b3d1983db5ea1ec645cc43 (patch) | |
tree | df9e852991348d49497be5e5a9e2b0786861da86 /src/core | |
parent | 0edc362f91dea54f0b094daddc589b25b94f31bb (diff) | |
parent | 5ecd75fdf6f047f251bea8b61219687b72102a4d (diff) |
merge with head
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/support/slice.c | 7 |
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; -} |