Remove unused transitions

pull/8/head
Nicolas Jouanin 2015-05-26 22:19:44 +02:00
rodzic 9c31476fef
commit 35577ab99a
1 zmienionych plików z 0 dodań i 3 usunięć

Wyświetl plik

@ -36,12 +36,9 @@ class Broker:
self.machine.add_transition(trigger='start', source='new', dest='starting')
self.machine.add_transition(trigger='starting_fail', source='starting', dest='not_started')
self.machine.add_transition(trigger='starting_success', source='starting', dest='started')
self.machine.add_transition(trigger='restart', source='not_started', dest='starting')
self.machine.add_transition(trigger='shutdown', source='started', dest='stopping')
self.machine.add_transition(trigger='stopping_success', source='stopping', dest='stopped')
self.machine.add_transition(trigger='stopping_failure', source='stopping', dest='not_stopped')
self.machine.add_transition(trigger='abort', source='not_stopped', dest='stopped')
self.machine.add_transition(trigger='abort', source='not_started', dest='stopped')
self.machine.add_transition(trigger='start', source='stopped', dest='starting')
def start(self):