diff options
author | Takashi Kokubun <[email protected]> | 2020-11-20 22:22:28 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2020-11-20 22:22:29 -0800 |
commit | 3f8c60cf09da72d1d538e39aee890f511b498fea (patch) | |
tree | 5c11fdd80380562df21a51d6c6d51559715f452e /string.c | |
parent | 0960f56a1d773c5417e9de729e159d346aec17ca (diff) |
Remove obsoleted str_new_empty
since 58325daae3beefda13ed100782cd19a89cc68771.
../string.c:1339:1: warning: ‘str_new_empty’ defined but not used [-Wunused-function]
1339 | str_new_empty(VALUE str)
| ^~~~~~~~~~~~~
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -1336,14 +1336,6 @@ rb_str_new_with_class(VALUE obj, const char *ptr, long len) } static VALUE -str_new_empty(VALUE str) -{ - VALUE v = rb_str_new_with_class(str, 0, 0); - rb_enc_copy(v, str); - return v; -} - -static VALUE str_new_empty_String(VALUE str) { VALUE v = rb_str_new(0, 0); |