rb_tainted_str_new_with_enc is no longer used
This commit is contained in:
parent
5e34ab5406
commit
22c9504905
7
string.c
7
string.c
@ -899,13 +899,6 @@ rb_tainted_str_new(const char *ptr, long len)
|
||||
return rb_str_new(ptr, len);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
rb_tainted_str_new_with_enc(const char *ptr, long len, rb_encoding *enc)
|
||||
{
|
||||
rb_warning("rb_tainted_str_new_with_enc is deprecated and will be removed in Ruby 3.2.");
|
||||
return rb_enc_str_new(ptr, len, enc);
|
||||
}
|
||||
|
||||
VALUE
|
||||
rb_tainted_str_new_cstr(const char *ptr)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user