Skip to content

Commit

Permalink
tools/fix: remove unused code
Browse files Browse the repository at this point in the history
When refactoring cue/load, I noticed that some pieces of code
were unused, which makes it less obvious what kinds of things
can be done. I used `staticcheck` to point out many other
places in the code that are unused.

This is one of those places.  I feel it's better to remove this code
even if it might be used in the future (it's always there to be found
in the git history).

Signed-off-by: Roger Peppe <[email protected]>
Change-Id: I576f48e4bbdd4780b05dd1f07582c5b966f16856
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/549285
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
Unity-Result: CUEcueckoo <[email protected]>
  • Loading branch information
rogpeppe authored and mvdan committed May 26, 2023
1 parent 97cba0b commit 1f888b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/fix/fix.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ import (
type Option func(*options)

type options struct {
simplify bool
deprecated bool
simplify bool
}

// Simplify enables fixes that simplify the code, but are not strictly
Expand Down

0 comments on commit 1f888b5

Please sign in to comment.