Skip to content

Commit

Permalink
internal/core/adt: remove unnecessary code
Browse files Browse the repository at this point in the history
This cleans things up a bit before the next CL.

Issue #2884

Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: Ied21592878756982609db6b23abee35f5fbb0ae1
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1193021
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
  • Loading branch information
mpvl committed Apr 15, 2024
1 parent a220cfb commit 97daa8f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions internal/core/adt/disjunct2.go
Expand Up @@ -409,8 +409,6 @@ func (n *nodeContext) doDisjunct(c Conjunct, m defaultMode, mode runMode) (*node
// not all holes filled out yet is not finalized. This may require
// a special mode, or evaluating more aggressively if finalize is not given.
v.status = unprocessed
v.state.scheduler.completed &^= subFieldsProcessed
v.state.scheduler.frozen &^= subFieldsProcessed

d.overlays = n
d.disjunctCCs = append(d.disjunctCCs, holes...)
Expand Down
4 changes: 0 additions & 4 deletions internal/core/adt/overlay.go
Expand Up @@ -90,10 +90,6 @@ func (ctx *overlayContext) cloneRoot(root *nodeContext) *nodeContext {
ctx.initCloneCC(cc)
}

// Note that this may trigger tasks to run, so it should be called after
// everything is initialized.
v.state.signal(allAncestorsProcessed)

// TODO: walk overlay vertices and decrement counters of non-disjunction
// running tasks?
// TODO: find a faster way to do this. Walking over vertices would
Expand Down

0 comments on commit 97daa8f

Please sign in to comment.