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:
parent
4724bf856f
commit
bc4c862a76
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue