diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-01-02 19:07:47 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-01-03 20:19:30 +0900 |
commit | bc4c862a763749a831dfe4e874229aae681ae0fd (patch) | |
tree | de58624af4d94e5f785db6fad9f3bcadf14e5fc4 /lib/timeout.rb | |
parent | 4724bf856f30e8cc56795c0dc23b96e7ae68e874 (diff) |
[ruby/timeout] Removed deprecated names that had been warned for 5 years
https://github.com/ruby/timeout/commit/f9a9758a41
Diffstat (limited to 'lib/timeout.rb')
-rw-r--r-- | lib/timeout.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/timeout.rb b/lib/timeout.rb index 0dc84b08b1..9026ad51d6 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -120,15 +120,3 @@ module Timeout 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 |