ia64/xen-unstable

changeset 7590:69958a5b94a3

Removed some dead code.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Mon Oct 31 16:54:05 2005 +0100 (2005-10-31)
parents 7c30e9215558
children a51ec6d425e7
files tools/python/xen/web/connection.py tools/python/xen/web/tcp.py tools/python/xen/web/unix.py
line diff
     1.1 --- a/tools/python/xen/web/connection.py	Mon Oct 31 12:05:49 2005 +0100
     1.2 +++ b/tools/python/xen/web/connection.py	Mon Oct 31 16:54:05 2005 +0100
     1.3 @@ -380,9 +380,6 @@ class SocketConnector:
     1.4          self.state = "disconnected"
     1.5          self.transport = None
     1.6  
     1.7 -    def getDestination(self):
     1.8 -        raise NotImplementedError()
     1.9 -
    1.10      def connectTransport(self):
    1.11          raise NotImplementedError()
    1.12  
     2.1 --- a/tools/python/xen/web/tcp.py	Mon Oct 31 12:05:49 2005 +0100
     2.2 +++ b/tools/python/xen/web/tcp.py	Mon Oct 31 16:54:05 2005 +0100
     2.3 @@ -85,9 +85,6 @@ class TCPConnector(SocketConnector):
     2.4                  raise IOError("unknown service: " + ex)
     2.5          return port
     2.6  
     2.7 -    def getDestination(self):
     2.8 -        return (self.host, self.port)
     2.9 -
    2.10      def connectTransport(self):
    2.11          self.transport = TCPClientConnection(
    2.12              self.host, self.port, self.bindAddress, self)
    2.13 @@ -98,9 +95,6 @@ def listenTCP(port, factory, interface='
    2.14      l.startListening()
    2.15      return l
    2.16  
    2.17 -def SetCloExec(SocketListener):
    2.18 -    SocketListener.setCloExec()
    2.19 -
    2.20  def connectTCP(host, port, factory, timeout=None, bindAddress=None):
    2.21      c = TCPConnector(host, port, factory, timeout=timeout, bindAddress=bindAddress)
    2.22      c.connect()
     3.1 --- a/tools/python/xen/web/unix.py	Mon Oct 31 12:05:49 2005 +0100
     3.2 +++ b/tools/python/xen/web/unix.py	Mon Oct 31 16:54:05 2005 +0100
     3.3 @@ -67,9 +67,6 @@ class UnixConnector(SocketConnector):
     3.4          self.addr = path
     3.5          self.timeout = timeout
     3.6  
     3.7 -    def getDestination(self):
     3.8 -        return self.addr
     3.9 -
    3.10      def connectTransport(self):
    3.11          self.transport = UnixClientConnection(self.addr, self)
    3.12          self.transport.connect(self.timeout)