From bbf440c90b036c733729b1a5c996978ac2adaa9d Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 17 Jun 2015 05:29:51 +0000 Subject: * 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 --- object.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index 79358adae8..84cfe91afc 100644 --- a/object.c +++ b/object.c @@ -70,7 +70,6 @@ rb_obj_setup(VALUE obj, VALUE klass, VALUE type) { RBASIC(obj)->flags = type; RBASIC_SET_CLASS(obj, klass); - if (rb_safe_level() >= 3) FL_SET((obj), FL_TAINT); return obj; } @@ -982,7 +981,6 @@ rb_obj_taint(VALUE obj) VALUE rb_obj_untaint(VALUE obj) { - rb_secure(3); if (OBJ_TAINTED(obj)) { rb_check_frozen(obj); FL_UNSET(obj, FL_TAINT); -- cgit v1.2.3