summaryrefslogtreecommitdiffhomepage
path: root/device/devicestate_string.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-02-09 15:39:19 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-09 15:39:19 +0100
commiteaf664e4e9134ab7d5100d7284274a821122fbbc (patch)
tree561a3c570d96016f71714501f68605e787151960 /device/devicestate_string.go
parenta816e8511eb45975e8e0e4199c3481989953fd56 (diff)
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>
Diffstat (limited to 'device/devicestate_string.go')
-rw-r--r--device/devicestate_string.go14
1 files changed, 2 insertions, 12 deletions
diff --git a/device/devicestate_string.go b/device/devicestate_string.go
index e8f16b0..6577dd4 100644
--- a/device/devicestate_string.go
+++ b/device/devicestate_string.go
@@ -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 = "NewDownUpClosed"
+const _deviceState_name = "DownUpClosed"
-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) {