aboutsummaryrefslogtreecommitdiff
path: root/hotline/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'hotline/util.go')
-rw-r--r--hotline/util.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/hotline/util.go b/hotline/util.go
deleted file mode 100644
index d37feb5..0000000
--- a/hotline/util.go
+++ /dev/null
@@ -1,17 +0,0 @@
-package hotline
-
-import (
- "encoding/binary"
- "errors"
-)
-
-func byteToInt(bytes []byte) (int, error) {
- switch len(bytes) {
- case 2:
- return int(binary.BigEndian.Uint16(bytes)), nil
- case 4:
- return int(binary.BigEndian.Uint32(bytes)), nil
- }
-
- return 0, errors.New("unknown byte length")
-}