From f9a9758a411af8126084832b37bf9cccad9ecb6d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 2 Jan 2021 19:07:47 +0900 Subject: [PATCH] Removed deprecated names that had been warned for 5 years --- lib/timeout.rb | 12 ------------ 1 file changed, 12 deletions(-) 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 @@ def timeout(sec, klass = nil, message = nil) #:yield: +sec+ 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