minor: remove unused code

This commit is contained in:
Kyle Banker 2012-02-16 11:29:10 -05:00
parent a4e49d86ac
commit 8bdb64721b
1 changed files with 0 additions and 8 deletions

View File

@ -381,14 +381,6 @@ module Mongo
@slave_ok
end
def get_socket_from_thread_local
Thread.current[:socket_map] ||= {}
Thread.current[:socket_map][self] ||= {}
Thread.current[:socket_map][self][:writer] ||= checkout_writer
Thread.current[:socket_map][self][:reader] =
Thread.current[:socket_map][self][:writer]
end
# Create a new socket and attempt to connect to master.
# If successful, sets host and port to master and returns the socket.
#