diff --git a/bot/normal/helpers.go b/bot/normal/helpers.go index d33959c..3a8a042 100644 --- a/bot/normal/helpers.go +++ b/bot/normal/helpers.go @@ -1,8 +1,6 @@ package normal import ( - "encoding/hex" - "fmt" "math" "time" @@ -13,22 +11,6 @@ import ( "gonum.org/v1/gonum/stat/distuv" ) -func hexToRaw(data []byte) ([]byte, error) { - raw := make([]byte, hex.DecodedLen(len(data))) - n, err := hex.Decode(raw, data) - if err != nil { - return nil, fmt.Errorf("failed to decode hex: %w", err) - } - if n != len(raw) { - return nil, fmt.Errorf("failed to decode hex: decoded %d bytes, expected to decode %d bytes", n, len(raw)) - } - return raw, nil -} - -func rawToHex(data []byte) string { - return hex.EncodeToString(data) -} - func max(a, b uint64) uint64 { if a > b { return a