diff options
-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 |