From d9bc63a10d0978d9a5222cf7be74044e55f409b7 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Tue, 9 Jul 2024 21:36:27 -0700 Subject: Extensive refactor and clean up --- hotline/util.go | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 hotline/util.go (limited to 'hotline/util.go') 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") -} -- cgit