Skip to content

Commit

Permalink
cue: remove Instance.Doc
Browse files Browse the repository at this point in the history
It was deprecated and hidden in 2021, and its replacement is
very straightforward.

Signed-off-by: Daniel Martí <[email protected]>
Change-Id: Ic3e3b43f27dd7f8a32f3b8ae6bf8d62da1648459
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1205530
Reviewed-by: Matthew Sackman <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
  • Loading branch information
mvdan committed Dec 11, 2024
1 parent 49a53d2 commit 54dc544
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cue/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,6 @@ func (inst *Instance) ID() string {
return inst.inst.ID()
}

// Doc returns the package comments for this instance.
//
// Deprecated: use inst.Value().Doc()
func (inst *hiddenInstance) Doc() []*ast.CommentGroup {
return inst.Value().Doc()
}

// Value returns the root value of the configuration. If the configuration
// defines in emit value, it will be that value. Otherwise it will be all
// top-level values.
Expand Down

0 comments on commit 54dc544

Please sign in to comment.