ruby-changes:58818
From: Nobuyoshi <ko1@a...>
Date: Mon, 18 Nov 2019 11:06:00 +0900 (JST)
Subject: [ruby-changes:58818] 22c9504905 (master): rb_tainted_str_new_with_enc is no longer used
https://git.ruby-lang.org/ruby.git/commit/?id=22c9504905 From 22c9504905114cfb58ebc0aa631200f0caafd4e0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 18 Nov 2019 11:05:08 +0900 Subject: rb_tainted_str_new_with_enc is no longer used diff --git a/string.c b/string.c index c47e721..00da7e2 100644 --- a/string.c +++ b/string.c @@ -899,13 +899,6 @@ rb_tainted_str_new(const char *ptr, long len) https://github.com/ruby/ruby/blob/trunk/string.c#L899 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) { -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/