all: resolve a handful of linter warnings
cue/parser's use of astinternal is just in the tests,
so there's no need to import it in the non-test code.
There's also no reason to define a func variable.
Remove a few unused fields and one type.
In internal/core/export's test, use an underscore assignment
so that the debugValue constant doesn't trigger "unused" warnings.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Id117bb2e5a8c6fd6c7d01f7f7782719663a6fddb
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195020
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>