diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb index fcf14259e81867..b8cde623447a8c 100644 --- a/bootstraptest/test_ractor.rb +++ b/bootstraptest/test_ractor.rb @@ -2327,22 +2327,6 @@ def initialize(a) }.tally.sort } -# Ractor#take will warn for compatibility. -# This method will be removed after 2025/09/01 -assert_equal "2", %q{ - raise "remove Ractor#take and this test" if Time.now > Time.new(2025, 9, 2) - $VERBOSE = true - r = Ractor.new{42} - $msg = [] - def Warning.warn(msg) - $msg << msg - end - r.take - r.take - raise unless $msg.all?{/Ractor#take/ =~ it} - $msg.size -} - # Cause lots of inline CC misses. assert_equal 'ok', <<~'RUBY' class A; def test; 1 + 1; end; end diff --git a/ractor.rb b/ractor.rb index 5827f6672b99c3..87d18528769c31 100644 --- a/ractor.rb +++ b/ractor.rb @@ -575,12 +575,6 @@ def value __builtin_ractor_value end - # keep it for compatibility - def take - Kernel.warn("Ractor#take was deprecated and use Ractor#value instead. This method will be removed after the end of Aug 2025", uplevel: 0) - self.value - end - # # call-seq: # ractor.monitor(port) -> self