From 7b999a0c6c2f5c8d8f2798db9ae0aa090f3d5552 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 12 Dec 2022 13:34:47 +0100 Subject: FSM: Remove HasTransition function --- internal/fsm/fsm.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'internal/fsm/fsm.go') 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 { -- cgit v1.2.3