cue/encoding/jsonschema: fix staticcheck errors
This fixes various errors found by staticcheck:
- an unused method is removed
- various usages of cue.Runtime are replaced by cue.Context
- the default case of a switch statement is moved to be last
Updates #2480.
Signed-off-by: Noam Dolovich <noam.tzvi.dolovich@gmail.com>
Change-Id: I0945d3c63fcd581aa7a6f198bc74fc1a56841b5c
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1196248
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
authored by