rb_tainted_str_new_with_enc is no longer used

This commit is contained in:
Nobuyoshi Nakada 2019-11-18 11:05:08 +09:00
parent 5e34ab5406
commit 22c9504905
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -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)
{