From 8bdb64721ba3afac768169a66b70a364abf08630 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Thu, 16 Feb 2012 11:29:10 -0500 Subject: [PATCH] minor: remove unused code --- lib/mongo/connection.rb | 8 -------- 1 file changed, 8 deletions(-) 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. #