diff --git a/lib/mongo/connection.rb b/lib/mongo/connection.rb index a6a3291..b937b43 100644 --- a/lib/mongo/connection.rb +++ b/lib/mongo/connection.rb @@ -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. #