From 935ba2e486d035c60104217eec8f2a223cdb3bef Mon Sep 17 00:00:00 2001 From: apocelipes Date: Mon, 9 Mar 2026 17:32:42 +0000 Subject: bytes: remove unused indexBytePortable The function "indexBytePortable" is no longer in use, and we have an identical one in "internal/bytealg". Remove this function and related tests. Change-Id: I018a92902f881836699c6a90511359d8bfa16f80 GitHub-Last-Rev: d9c8917253d9e961798660ac62fa8e8ba35523bc GitHub-Pull-Request: golang/go#78029 Reviewed-on: https://go-review.googlesource.com/c/go/+/753080 Reviewed-by: Keith Randall Reviewed-by: Keith Randall Auto-Submit: Keith Randall LUCI-TryBot-Result: Go LUCI Reviewed-by: Mark Freeman --- src/bytes/bytes.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/bytes/bytes.go') 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) -- cgit v1.3