diff options
author | Jeremy Evans <[email protected]> | 2019-09-24 20:59:12 -0700 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2019-11-18 01:00:25 +0200 |
commit | ffd0820ab317542f8780aac475da590a4bdbc7a8 () | |
tree | 6a5d774933c15fd2b9ea948bd3ae2fa587faaf82 /range.c | |
parent | c5c05460ac20abcbc0ed686eb4acf06da7a39a79 (diff) |
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.
Notes: Merged: https://.com/ruby/ruby/pull/2476
-rw-r--r-- | range.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1325,7 +1325,6 @@ range_to_s(VALUE range) str = rb_str_dup(str); rb_str_cat(str, "...", EXCL(range) ? 3 : 2); rb_str_append(str, str2); - OBJ_INFECT(str, range); return str; } @@ -1349,7 +1348,6 @@ inspect_range(VALUE range, VALUE dummy, int recur) str2 = rb_inspect(RANGE_END(range)); } if (str2 != Qundef) rb_str_append(str, str2); - OBJ_INFECT(str, range); return str; } |