diff --git a/internal/utils/bytes_test.go b/internal/utils/bytes_test.go index d752cfec0..8d06cd3a5 100644 --- a/internal/utils/bytes_test.go +++ b/internal/utils/bytes_test.go @@ -99,8 +99,3 @@ func TestCopyBytes(t *testing.T) { t.Errorf("should not be 0") } } - -// hasHexPrefix validates str begins with '0x' or '0X'. -func hasHexPrefix(str string) bool { - return len(str) >= 2 && str[0] == '0' && (str[1] == 'x' || str[1] == 'X') -}