summaryrefslogtreecommitdiff
path: root/internal/fsm/fsm.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/fsm/fsm.go')
-rw-r--r--internal/fsm/fsm.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/internal/fsm/fsm.go b/internal/fsm/fsm.go
index 18c26ca..b6048be 100644
--- a/internal/fsm/fsm.go
+++ b/internal/fsm/fsm.go
@@ -96,17 +96,6 @@ func (fsm *FSM) InState(check StateID) bool {
return check == fsm.Current
}
-// HasTransition checks whether or not the state machine has a transition to the given 'check' state.
-//func (fsm *FSM) HasTransition(check StateID) bool {
-// for _, transitionState := range fsm.States[fsm.Current].Transitions {
-// if transitionState.To == check {
-// return true
-// }
-// }
-//
-// return false
-//}
-
func (fsm *FSM) CheckTransition(desired StateID) error {
for _, ts := range fsm.States[fsm.Current].Transitions {
if ts.To == desired {