From 2d912cd72a936b1e85a0ff77d627a8f3fa5a9864 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Wed, 22 Nov 2023 12:40:45 +0200 Subject: [PATCH] Remove unused functions --- pkg/common/utils.go | 13 ------------- 1 file changed, 13 deletions(-) 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() {