From e91c39f1c0f7d5e670266d9593d533fd444957f6 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Fri, 17 Jan 2020 11:36:52 -0800 Subject: Remove special handling of $SAFE and related C-APIs These were all deprecated in Ruby 2.7. --- bootstraptest/test_proc.rb | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'bootstraptest/test_proc.rb') diff --git a/bootstraptest/test_proc.rb b/bootstraptest/test_proc.rb index 1e384411dc..6d2c557c3c 100644 --- a/bootstraptest/test_proc.rb +++ b/bootstraptest/test_proc.rb @@ -224,19 +224,6 @@ assert_equal %q{[[nil, []], [1, []], [1, [2]], [1, [2, 3]]]}, %q{ Proc.new{|a, *b| [a, b]}.call(1, 2, 3), ] } -assert_equal %q{1}, %q{ - pr = proc{ - $SAFE - } - $SAFE = 1 - pr.call -} -assert_equal %q{[1, 1]}, %q{ - pr = proc{ - $SAFE += 1 - } - [pr.call, $SAFE] -} assert_equal %q{1}, %q{ def m(&b) b -- cgit v1.2.3