this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

all: remove some more unused code found by staticcheck

Mostly code which became unused after removing evalv2,
but also other bits which became unused due to other refactors.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I1496b5b8e9562f10af6b5895b29158a70c18c0b8
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1220029
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>

-17
-4
internal/core/adt/comprehension.go
··· 77 77 78 78 // runtime-related fields 79 79 80 - err *Bottom 81 - 82 80 // envs holds all the environments that define a single "yield" result in 83 81 // combination with the comprehension struct. 84 82 envs []*Environment // nil: unprocessed, non-nil: done. ··· 98 96 99 97 // Values specific to the field corresponding to this envYield 100 98 101 - // This envYield was added to selfComprehensions 102 - self bool 103 99 // This envYield was successfully executed and the resulting conjuncts were 104 100 // added. 105 101 inserted bool
-4
internal/core/adt/context.go
··· 167 167 // conjunct) of StructInfos to include in closedness checking. 168 168 inDisjunct int 169 169 170 - // inConstaint overrides inDisjunct as field matching should always be 171 - // enabled. 172 - inConstraint int 173 - 174 170 // inDetached indicates that inline structs evaluated in the current context 175 171 // should never be shared. This is the case, for instance, with the source 176 172 // for the for clause in a comprehension.
-7
internal/core/adt/disjunct.go
··· 91 91 92 92 src Node 93 93 disjuncts []disjunct 94 - 95 - // These are used for book keeping, tracking whether any of the 96 - // disjuncts marked with a default marker remains after unification. 97 - // If no default is used, all other elements are treated as "maybeDefault". 98 - // Otherwise, elements are treated as is. 99 - parentDefaultUsed bool 100 - childDefaultUsed bool 101 94 } 102 95 103 96 func (n *nodeContext) makeError() {
-2
internal/core/adt/expr.go
··· 220 220 221 221 // scalars, comprehensions, ...T 222 222 Elems []Elem 223 - 224 - info *StructLit // Shared closedness info. 225 223 } 226 224 227 225 func (x *ListLit) Source() ast.Node {