this repo has no description
0
fork

Configure Feed

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

internal/pkg: remove unnecessary runtime fields

These have been present since 2022, but were never actually used.

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

+5 -7
+2 -2
internal/pkg/context.go
··· 79 79 switch v, ok := x.(*adt.Vertex); { 80 80 case ok && !v.IsList(): 81 81 v.CompleteArcs(c.ctx) 82 - return Struct{c.ctx, v} 82 + return Struct{v} 83 83 84 84 case v != nil: 85 85 x = v.Value() ··· 302 302 if v == nil { 303 303 return List{} 304 304 } 305 - return List{c.ctx, v, v.BaseValue.(*adt.ListMarker).IsOpen} 305 + return List{v, v.BaseValue.(*adt.ListMarker).IsOpen} 306 306 } 307 307 308 308 func (c *CallCtxt) Iter(i int) (a cue.Iterator) {
+3 -5
internal/pkg/types.go
··· 27 27 28 28 // List represents a CUE list, which can be open or closed. 29 29 type List struct { 30 - runtime adt.Runtime 31 - node *adt.Vertex 32 - isOpen bool 30 + node *adt.Vertex 31 + isOpen bool 33 32 } 34 33 35 34 // Elems returns the elements of a list. ··· 44 43 45 44 // Struct represents a CUE struct, which can be open or closed. 46 45 type Struct struct { 47 - runtime adt.Runtime 48 - node *adt.Vertex 46 + node *adt.Vertex 49 47 } 50 48 51 49 // Arcs returns all arcs of s.