internal/core/adt: remove dead code in process and evalStateCI
evalStateCI made two sequential getState calls on the same arc;
getState is idempotent for a given vertex, so consolidate them
into one so cycle detection and retainProcess share a single
state lookup.
Drop the "make this configurable" TODO on numCompletionStates:
the scheduler is tightly coupled to CUE's fixed condition set
(the iota block in states.go), the constant of 10 already
covers all defined conditions with headroom, and no second
consumer has materialized.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I250660922c992a545dc5959ab9b7324855e106e1
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1236066
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>