diff options
Diffstat (limited to 'src/bytes/bytes.go')
| -rw-r--r-- | src/bytes/bytes.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/bytes/bytes.go b/src/bytes/bytes.go index 9576350bf6..787ea86f00 100644 --- a/src/bytes/bytes.go +++ b/src/bytes/bytes.go @@ -98,15 +98,6 @@ func IndexByte(b []byte, c byte) int { return bytealg.IndexByte(b, c) } -func indexBytePortable(s []byte, c byte) int { - for i, b := range s { - if b == c { - return i - } - } - return -1 -} - // LastIndex returns the index of the last instance of sep in s, or -1 if sep is not present in s. func LastIndex(s, sep []byte) int { n := len(sep) |
