From 9827faf6375c2d13576b9b2cd0d4923bb1673fc6 Mon Sep 17 00:00:00 2001 From: Minh Doan Date: Fri, 4 Jan 2019 13:54:46 -0800 Subject: [PATCH] remove unused code --- internal/utils/bytes_test.go | 5 ----- 1 file changed, 5 deletions(-) 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') -}