From 881f054cbf07a39fe0d90306c316f467258ac87d Mon Sep 17 00:00:00 2001 From: cremno Date: Wed, 9 Jul 2014 11:56:29 +0200 Subject: remove unused `mrb_str_body` --- src/string.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src') diff --git a/src/string.c b/src/string.c index 6570c89fb..a22060e37 100644 --- a/src/string.c +++ b/src/string.c @@ -360,21 +360,6 @@ str_make_shared(mrb_state *mrb, struct RString *s) } } -/* - * call-seq: - * char* str = String("abcd"), len=strlen("abcd") - * - * Returns a new string object containing a copy of str. - */ -const char* -mrb_str_body(mrb_value str, int *len_p) -{ - struct RString *s = mrb_str_ptr(str); - - *len_p = RSTR_LEN(s); - return RSTR_PTR(s); -} - /* * call-seq: (Caution! String("abcd") change) * String("abcdefg") = String("abcd") + String("efg") -- cgit v1.2.3