this repo has no description
0
fork

Configure Feed

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

cue: remove Merge

It has been deprecated and marked as DO NOT USE since April 2021,
which was even before the first tagged release, v0.0.2 in July 2021.
Now that it has been three full years, and the last use in 'cue cmd'
has been ripped out, it's time to remove it.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I4c03a3f9c767d29e62f9496c72ac06b74b7070e7
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1193719
Reviewed-by: Paul Jolly <paul@myitcv.io>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>

-23
-23
cue/instance.go
··· 217 217 return v.Context().BuildExpr(expr, Scope(v), InferBuiltins(true)) 218 218 } 219 219 220 - // DO NOT USE. 221 - // 222 - // Deprecated: do not use. 223 - func Merge(inst ...*Instance) *Instance { 224 - v := &adt.Vertex{} 225 - 226 - i := inst[0] 227 - ctx := newContext(i.index) 228 - 229 - // TODO: interesting test: use actual unification and then on K8s corpus. 230 - 231 - for _, i := range inst { 232 - w := i.Value() 233 - v.AddConjunct(adt.MakeRootConjunct(nil, w.v.ToDataAll(ctx))) 234 - } 235 - v.Finalize(ctx) 236 - 237 - p := addInst(i.index, &Instance{ 238 - root: v, 239 - }) 240 - return p 241 - } 242 - 243 220 // Build creates a new instance from the build instances, allowing unbound 244 221 // identifier to bind to the top-level field in inst. The top-level fields in 245 222 // inst take precedence over predeclared identifier and builtin functions.