-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue: resolve a few staticcheck warnings
Instance's setError and eval methods are unexported and unused. Moreover, Instance itself has been deprecated for years. hasDisjunction and stripNonDefaults, as well as their uses in the commented-out bit of code in Value.Default, have been unused for at least four years. They are still present in the git history if needed, but clearly they are not needed now and have not actually been for a long time already. Finally, rewrite the way a test advances an iterator twice so that it doesn't make staticcheck think that we mistakenly checked the same condition twice, which is often due to human error. Updates #3335. Signed-off-by: Daniel Martí <[email protected]> Change-Id: If6608b5d9d1076316e3c03e530b6b6577a157605 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202602 Reviewed-by: Roger Peppe <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information
Showing
3 changed files
with
5 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters