summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-11-20 22:22:28 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2020-11-20 22:22:29 -0800
commit3f8c60cf09da72d1d538e39aee890f511b498fea (patch)
tree5c11fdd80380562df21a51d6c6d51559715f452e
parent0960f56a1d773c5417e9de729e159d346aec17ca (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) | ^~~~~~~~~~~~~
-rw-r--r--string.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/string.c b/string.c
index 9fcb742..6abfcd3 100644
--- a/string.c
+++ b/string.c
@@ -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);