diff options
author | 2015-12-08 13:59:16 -0800 | |
---|---|---|
committer | 2015-12-08 13:59:16 -0800 | |
commit | f99dbf5d08290b141946ac8e728337c3047cbcbe (patch) | |
tree | 542ec0dcf49c984ffccd43e20876dbd47f4b18a3 /src/core/support | |
parent | 38d39f4622bf3714aa58e386be9d489190fe8bda (diff) |
Remove gpr_slice_to_cstring as it is not used anywhere
Diffstat (limited to 'src/core/support')
-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; -} |