mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Removed some dead code.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
3941b09261
commit
6eae10ab53
3 files changed
-12
No files matched your search
@@ -380,9 +380,6 @@ class SocketConnector:
|
||||
self.state = "disconnected"
|
||||
self.transport = None
|
||||
|
||||
def getDestination(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
def connectTransport(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
@@ -85,9 +85,6 @@ class TCPConnector(SocketConnector):
|
||||
raise IOError("unknown service: " + ex)
|
||||
return port
|
||||
|
||||
def getDestination(self):
|
||||
return (self.host, self.port)
|
||||
|
||||
def connectTransport(self):
|
||||
self.transport = TCPClientConnection(
|
||||
self.host, self.port, self.bindAddress, self)
|
||||
@@ -98,9 +95,6 @@ def listenTCP(port, factory, interface='', backlog=None):
|
||||
l.startListening()
|
||||
return l
|
||||
|
||||
def SetCloExec(SocketListener):
|
||||
SocketListener.setCloExec()
|
||||
|
||||
def connectTCP(host, port, factory, timeout=None, bindAddress=None):
|
||||
c = TCPConnector(host, port, factory, timeout=timeout, bindAddress=bindAddress)
|
||||
c.connect()
|
||||
|
||||
@@ -67,9 +67,6 @@ class UnixConnector(SocketConnector):
|
||||
self.addr = path
|
||||
self.timeout = timeout
|
||||
|
||||
def getDestination(self):
|
||||
return self.addr
|
||||
|
||||
def connectTransport(self):
|
||||
self.transport = UnixClientConnection(self.addr, self)
|
||||
self.transport.connect(self.timeout)
|
||||
|
||||