From 7d10e2540ebb08fe0fbc663095b173f87c770f90 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Wed, 22 Nov 2023 16:58:16 +0200 Subject: [PATCH] Remove unused functions (#2122) --- 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() {