summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-17 05:29:51 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-17 05:29:51 +0000
commitbbf440c90b036c733729b1a5c996978ac2adaa9d (patch)
tree63a68dca7be09eb7be8a1d5e9c58bb5726688ee9 /re.c
parent3759dfa23e6d6106d93a5c9bf845b0fc620a2512 (diff)
downloadbundler-bbf440c90b036c733729b1a5c996978ac2adaa9d.tar.gz
* include/ruby/ruby.h: $SAFE=3 is now obsolete.
* ext/socket/init.c, ext/socket/socket.c, ext/socket/tcpsocket.c ext/socket/udpsocket.c, gc.c, object.c, re.c, safe.c: removed code for $SAFE=3 * bootstraptest/test_method.rb, test/erb/test_erb.rb, test/ruby/test_dir.rb test/ruby/test_file.rb, test/ruby/test_method.rb, test/ruby/test_regexp.rb test/ruby/test_thread.rb: remove tests for $SAFE=3 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/re.c b/re.c
index 207a77d272..86066fd4a0 100644
--- a/re.c
+++ b/re.c
@@ -1489,9 +1489,6 @@ rb_reg_search0(VALUE re, VALUE str, long pos, int reverse, int set_backref_str)
if (err) rb_memerror();
}
else {
- if (rb_safe_level() >= 3)
- OBJ_TAINT(match);
- else
FL_UNSET(match, FL_TAINT);
}