Skip to content

Commit

Permalink
remove unused Builder.fireTestEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Apr 17, 2011
1 parent aa409d1 commit 32ff1c0
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions master/buildbot/process/builder.py
Expand Up @@ -135,8 +135,6 @@ def __init__(self, setup, builder_status):
self.reclaim_svc.setServiceParent(self)

# for testing, to help synchronize tests
self.watchers = {'attach': [], 'detach': [], 'detach_all': [],
'idle': []}
self.run_count = 0

# add serialized-invocation behavior to maybeStartBuild
Expand Down Expand Up @@ -423,14 +421,6 @@ def getBuild(self, number):
return b
return None

def fireTestEvent(self, name, fire_with=None):
if fire_with is None:
fire_with = self
watchers = self.watchers[name]
self.watchers[name] = []
for w in watchers:
eventually(w.callback, fire_with)

def addLatentSlave(self, slave):
assert interfaces.ILatentBuildSlave.providedBy(slave)
for s in self.slaves:
Expand Down Expand Up @@ -486,7 +476,6 @@ def _attached(self, sb):
self.attaching_slaves.remove(sb)
self.slaves.append(sb)

self.fireTestEvent('attach')
return self

def _not_attached(self, why, slave):
Expand All @@ -497,7 +486,6 @@ def _not_attached(self, why, slave):
self.builder_status.addPointEvent(['failed', 'connect',
slave.slavename])
# TODO: add an HTMLLogFile of the exception
self.fireTestEvent('attach', why)

def detached(self, slave):
"""This is called when the connection to the bot is lost."""
Expand Down Expand Up @@ -525,9 +513,6 @@ def detached(self, slave):
self.builder_status.addPointEvent(['disconnect', slave.slavename])
sb.detached() # inform the SlaveBuilder that their slave went away
self.updateBigStatus()
self.fireTestEvent('detach')
if not self.slaves:
self.fireTestEvent('detach_all')

def updateBigStatus(self):
if not self.slaves:
Expand All @@ -536,7 +521,6 @@ def updateBigStatus(self):
self.builder_status.setBigState("building")
else:
self.builder_status.setBigState("idle")
self.fireTestEvent('idle')

def startBuild(self, build, sb):
"""Start a build on the given slave.
Expand Down

0 comments on commit 32ff1c0

Please sign in to comment.