mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove obsoleted str_new_empty
since 58325daae3
.
../string.c:1339:1: warning: ‘str_new_empty’ defined but not used [-Wunused-function]
1339 | str_new_empty(VALUE str)
| ^~~~~~~~~~~~~
This commit is contained in:
parent
0960f56a1d
commit
3f8c60cf09
1 changed files with 0 additions and 8 deletions
8
string.c
8
string.c
|
@ -1335,14 +1335,6 @@ rb_str_new_with_class(VALUE obj, const char *ptr, long len)
|
||||||
return str_new0(rb_obj_class(obj), ptr, len, TERM_LEN(obj));
|
return str_new0(rb_obj_class(obj), ptr, len, TERM_LEN(obj));
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
static VALUE
|
||||||
str_new_empty_String(VALUE str)
|
str_new_empty_String(VALUE str)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue