diff --git a/cue/build/context.go b/cue/build/context.go index 664326eeef2..dc1e347c931 100644 --- a/cue/build/context.go +++ b/cue/build/context.go @@ -26,15 +26,11 @@ package build import ( - "context" - "cuelang.org/go/cue/ast" ) // A Context keeps track of state of building instances and caches work. type Context struct { - ctxt context.Context - loader LoadFunc parseFunc func(str string, src interface{}) (*ast.File, error) @@ -80,14 +76,13 @@ func (inst *Instance) Complete() error { func (c *Context) init() { if !c.initialized { c.initialized = true - c.ctxt = context.Background() c.imports = map[string]*Instance{} } } // Options: // - certain parse modes -// - parallellism +// - parallelism // - error handler (allows cancelling the context) // - file set. diff --git a/cue/load/config.go b/cue/load/config.go index b8763a06fcb..2efd0a8d5b2 100644 --- a/cue/load/config.go +++ b/cue/load/config.go @@ -124,9 +124,6 @@ type Config struct { // packages at loading time. // Context specifies the context for the load operation. - // If the context is cancelled, the loader may stop early - // and return an ErrCancelled error. - // If Context is nil, the load cannot be cancelled. Context *build.Context // A Module is a collection of packages and instances that are within the