diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-12-12 13:34:47 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-12-12 13:39:21 +0100 |
| commit | 7b999a0c6c2f5c8d8f2798db9ae0aa090f3d5552 (patch) | |
| tree | 463a081436561cb5f71f617041922fdb3c01ce7a /internal | |
| parent | 3263a6fb3719148358ce11b3c744508451d6e1a6 (diff) | |
FSM: Remove HasTransition function
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/fsm/fsm.go | 11 |
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 { |
