diff --git a/pkg/common/utils.go b/pkg/common/utils.go index c9ab8795cd1c..24ceb3252e4b 100644 --- a/pkg/common/utils.go +++ b/pkg/common/utils.go @@ -2,7 +2,6 @@ package common import ( "bufio" - "bytes" "crypto/rand" "encoding/base32" "encoding/binary" @@ -30,18 +29,6 @@ func RemoveStringSliceItem(item string, slice *[]string) { } } -func MinInt(a, b int) int { - if a < b { - return a - } - return b -} - -func BytesEqual(a, b []byte, numBytes int) bool { - limit := MinInt(numBytes, MinInt(len(a), len(b))-1) - return bytes.Equal(a[:limit], b[:limit]) -} - func ResponseContainsSubstring(reader io.ReadCloser, target string) (bool, error) { scanner := bufio.NewScanner(reader) for scanner.Scan() {