about summary refs log tree commit homepage
path: root/lib/unicorn/socket.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-21 11:14:53 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-21 11:16:38 -0700
commit79080e97c0ef1863c1e80a9ddf30c69323af1ca7 (patch)
tree1285a6d91ab86827f51615990eef364e238e761b /lib/unicorn/socket.rb
parent588577cc4852f9dce1bd011451399ce96c00023c (diff)
downloadunicorn-79080e97c0ef1863c1e80a9ddf30c69323af1ca7.tar.gz
This removes the #unicorn_peeraddr methods from TCPSocket and
UNIXSocket core classes.  Instead, just move that logic into the
only place it needs to be used in HttpRequest.
Diffstat (limited to 'lib/unicorn/socket.rb')
-rw-r--r--lib/unicorn/socket.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/unicorn/socket.rb b/lib/unicorn/socket.rb
index 5a3bfd7..850ad85 100644
--- a/lib/unicorn/socket.rb
+++ b/lib/unicorn/socket.rb
@@ -1,18 +1,5 @@
 require 'socket'
 
-class UNIXSocket
-  UNICORN_PEERADDR = '127.0.0.1'.freeze
-  def unicorn_peeraddr
-    UNICORN_PEERADDR
-  end
-end
-
-class TCPSocket
-  def unicorn_peeraddr
-    peeraddr.last
-  end
-end
-
 module Unicorn
   module SocketHelper
     include Socket::Constants