mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-07 09:31:07 +08:00
device: remove deviceStateNew
It's never used and we won't have a use for it. Also, move to go-running stringer, for those without GOPATHs. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
@@ -4,19 +4,9 @@ package device
|
||||
|
||||
import "strconv"
|
||||
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[deviceStateNew-0]
|
||||
_ = x[deviceStateDown-1]
|
||||
_ = x[deviceStateUp-2]
|
||||
_ = x[deviceStateClosed-3]
|
||||
}
|
||||
const _deviceState_name = "DownUpClosed"
|
||||
|
||||
const _deviceState_name = "NewDownUpClosed"
|
||||
|
||||
var _deviceState_index = [...]uint8{0, 3, 7, 9, 15}
|
||||
var _deviceState_index = [...]uint8{0, 4, 6, 12}
|
||||
|
||||
func (i deviceState) String() string {
|
||||
if i >= deviceState(len(_deviceState_index)-1) {
|
||||
|
Reference in New Issue
Block a user