Skip to content

Commit

Permalink
Removed deprecated names that had been warned for 5 years
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jan 2, 2021
1 parent 3ec31a5 commit 14d4212
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/timeout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 14d4212

Please sign in to comment.