Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Nov 22, 2023
1 parent a7a9e18 commit 2d912cd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pkg/common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package common

import (
"bufio"
"bytes"
"crypto/rand"
"encoding/base32"
"encoding/binary"
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 2d912cd

Please sign in to comment.