ruby-changes:64718
From: Nobuyoshi <ko1@a...>
Date: Sun, 3 Jan 2021 20:20:15 +0900 (JST)
Subject: [ruby-changes:64718] bc4c862a76 (master): [ruby/timeout] Removed deprecated names that had been warned for 5 years
https://git.ruby-lang.org/ruby.git/commit/?id=bc4c862a76 From bc4c862a763749a831dfe4e874229aae681ae0fd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 2 Jan 2021 19:07:47 +0900 Subject: [ruby/timeout] Removed deprecated names that had been warned for 5 years https://github.com/ruby/timeout/commit/f9a9758a41 diff --git a/lib/timeout.rb b/lib/timeout.rb index 0dc84b0..9026ad5 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -120,15 +120,3 @@ module Timeout https://github.com/ruby/ruby/blob/trunk/lib/timeout.rb#L120 module_function :timeout end - -def timeout(*args, &block) - warn "Object##{__method__} is deprecated, use Timeout.timeout instead.", uplevel: 1 - Timeout.timeout(*args, &block) -end - -# Another name for Timeout::Error, defined for backwards compatibility with -# earlier versions of timeout.rb. -TimeoutError = Timeout::Error -class Object - deprecate_constant :TimeoutError -end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/