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. --- ext/cgi/escape/escape.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'ext/cgi') diff --git a/ext/cgi/escape/escape.c b/ext/cgi/escape/escape.c index 76d8f0d067..47188819cd 100644 --- a/ext/cgi/escape/escape.c +++ b/ext/cgi/escape/escape.c @@ -30,8 +30,6 @@ static inline void preserve_original_state(VALUE orig, VALUE dest) { rb_enc_associate(dest, rb_enc_get(orig)); - - RB_OBJ_INFECT_RAW(dest, orig); } static VALUE -- cgit v1.2.3