[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Removed some dead code.



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 69958a5b94a3f6a83e6006d6b855dc8d673f647a
# Parent  7c30e921555887b7eddb92161d25dd1317852895
Removed some dead code.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 7c30e9215558 -r 69958a5b94a3 tools/python/xen/web/connection.py
--- a/tools/python/xen/web/connection.py        Mon Oct 31 11:05:49 2005
+++ b/tools/python/xen/web/connection.py        Mon Oct 31 15:54:05 2005
@@ -380,9 +380,6 @@
         self.state = "disconnected"
         self.transport = None
 
-    def getDestination(self):
-        raise NotImplementedError()
-
     def connectTransport(self):
         raise NotImplementedError()
 
diff -r 7c30e9215558 -r 69958a5b94a3 tools/python/xen/web/tcp.py
--- a/tools/python/xen/web/tcp.py       Mon Oct 31 11:05:49 2005
+++ b/tools/python/xen/web/tcp.py       Mon Oct 31 15:54:05 2005
@@ -85,9 +85,6 @@
                 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)
@@ -97,9 +94,6 @@
     l = TCPListener(port, factory, interface=interface, backlog=backlog)
     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)
diff -r 7c30e9215558 -r 69958a5b94a3 tools/python/xen/web/unix.py
--- a/tools/python/xen/web/unix.py      Mon Oct 31 11:05:49 2005
+++ b/tools/python/xen/web/unix.py      Mon Oct 31 15:54:05 2005
@@ -67,9 +67,6 @@
         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)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.