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/cmd/go/testdata/script/list_test.txt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/cmd') diff --git a/src/cmd/go/testdata/script/list_test.txt b/src/cmd/go/testdata/script/list_test.txt index f65cd80db2..57104891c8 100644 --- a/src/cmd/go/testdata/script/list_test.txt +++ b/src/cmd/go/testdata/script/list_test.txt @@ -4,18 +4,18 @@ [compiler:gccgo] skip 'gccgo does not have standard packages' -go list -test -deps bytes -stdout '^bytes.test$' # test main -stdout '^bytes$' # real bytes -stdout '^bytes \[bytes.test\]$' # test copy of bytes -stdout 'testing \[bytes.test\]$' # test copy of testing +go list -test -deps strings +stdout '^strings.test$' # test main +stdout '^strings$' # real strings +stdout '^strings \[strings.test\]$' # test copy of strings +stdout 'testing \[strings.test\]$' # test copy of testing ! stdout ^testing$ # should not have real testing -go list -test bytes -stdout '^bytes.test$' # test main -stdout '^bytes$' # real bytes -stdout '^bytes \[bytes.test\]$' # test copy of bytes -! stdout '^testing \[bytes.test\]$' # should not have test copy of testing +go list -test strings +stdout '^strings.test$' # test main +stdout '^strings$' # real strings +stdout '^strings \[strings.test\]$' # test copy of strings +! stdout '^testing \[strings.test\]$' # should not have test copy of testing ! stdout '^testing$' # should not have real testing go list -test cmd/buildid cmd/gofmt -- cgit v1.3