Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Aug 15, 2010
1 parent 6324d31 commit 928e19d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions slave/buildslave/bot.py
Expand Up @@ -435,14 +435,12 @@ def stopFactory(self):


class BuildSlave(service.MultiService):
botClass = Bot

def __init__(self, buildmaster_host, port, name, passwd, basedir,
keepalive, usePTY, keepaliveTimeout=30, umask=None,
maxdelay=300, unicode_encoding=None):
log.msg("Creating BuildSlave -- version: %s" % buildslave.version)
service.MultiService.__init__(self)
bot = self.botClass(basedir, usePTY, unicode_encoding=unicode_encoding)
bot = Bot(basedir, usePTY, unicode_encoding=unicode_encoding)
bot.setServiceParent(self)
self.bot = bot
if keepalive == 0:
Expand All @@ -453,15 +451,6 @@ def __init__(self, buildmaster_host, port, name, passwd, basedir,
self.connection = c = internet.TCPClient(buildmaster_host, port, bf)
c.setServiceParent(self)

def waitUntilDisconnected(self):
# utility method for testing. Returns a Deferred that will fire when
# we lose the connection to the master.
if not self.bf.perspective:
return defer.succeed(None)
d = defer.Deferred()
self.bf.perspective.notifyOnDisconnect(lambda res: d.callback(None))
return d

def startService(self):
if self.umask is not None:
os.umask(self.umask)
Expand Down

0 comments on commit 928e19d

Please sign in to comment.