summaryrefslogtreecommitdiff
path: root/lib/timeout.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-02 19:07:47 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-03 20:19:30 +0900
commitbc4c862a763749a831dfe4e874229aae681ae0fd (patch)
treede58624af4d94e5f785db6fad9f3bcadf14e5fc4 /lib/timeout.rb
parent4724bf856f30e8cc56795c0dc23b96e7ae68e874 (diff)
downloadruby-bc4c862a763749a831dfe4e874229aae681ae0fd.tar.gz
[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.rb12
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