diff --git a/internal/worker/statemachine.go b/internal/worker/statemachine.go index b3bf9b83..689e470b 100644 --- a/internal/worker/statemachine.go +++ b/internal/worker/statemachine.go @@ -82,9 +82,3 @@ func (w *Worker) ackStateChange(ctx context.Context, state api.WorkerStatus) { return } } - -func (w *Worker) isState(state api.WorkerStatus) bool { - w.stateMutex.Lock() - defer w.stateMutex.Unlock() - return w.state == state -}