1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/timeout] Removed deprecated names that had been warned for 5 years

f9a9758a41
This commit is contained in:
Nobuyoshi Nakada 2021-01-02 19:07:47 +09:00
parent 4724bf856f
commit bc4c862a76

View file

@ -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