1
0
Fork 0
mirror of https://github.com/mperham/connection_pool synced 2023-03-27 23:22:21 -04:00

Remove deprecated #with_connection.

This commit is contained in:
Damian Janowski 2012-12-18 23:53:08 -03:00
parent c0eed147fa
commit c19f3242b4

View file

@ -51,11 +51,6 @@ class ConnectionPool
end
end
def with_connection(&block)
warn("ConnectionPool#with_connection is deprecated and will be removed in version 1.0. Upgrade your code to use ConnectionPool#with instead. (in #{caller[0]})")
with(&block)
end
def checkout
stack = ::Thread.current[@key] ||= []
@ -91,11 +86,6 @@ class ConnectionPool
@pool.checkin
end
def with_connection(&block)
warn("ConnectionPool::Wrapper#with_connection is deprecated and will be removed in version 1.0. Upgrade your code to use ConnectionPool::Wrapper#with instead. (in #{caller[0]})")
with(&block)
end
def respond_to?(id, *args)
METHODS.include?(id) || @pool.with { |c| c.respond_to?(id, *args) }
end