From ffd0820ab317542f8780aac475da590a4bdbc7a8 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Tue, 24 Sep 2019 20:59:12 -0700 Subject: Deprecate taint/trust and related methods, and make the methods no-ops This removes the related tests, and puts the related specs behind version guards. This affects all code in lib, including some libraries that may want to support older versions of Ruby. --- ruby.c | 1 - 1 file changed, 1 deletion(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index 8df0fcfec3..1f0bf8811b 100644 --- a/ruby.c +++ b/ruby.c @@ -2227,7 +2227,6 @@ external_str_new_cstr(const char *p) #if UTF8_PATH VALUE str = rb_utf8_str_new_cstr(p); str = str_conv_enc(str, NULL, rb_default_external_encoding()); - OBJ_TAINT_RAW(str); return str; #else return rb_external_str_new_cstr(p); -- cgit v1.2.3