Skip to content

Find, verify, and analyze leaked credentials

Remove unused functions (#2122)

Oleksandr Redko7d10e2540ebb
diff --git a/pkg/common/utils.go b/pkg/common/utils.go
index c9ab8795c..24ceb3252 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() {