minor: remove unused code
This commit is contained in:
parent
a4e49d86ac
commit
8bdb64721b
@ -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.
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user