]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/subtle: remove unused code
authorqiulaidongfeng <2645477756@qq.com>
Fri, 16 Feb 2024 09:52:40 +0000 (09:52 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 16 Feb 2024 15:51:19 +0000 (15:51 +0000)
Change-Id: I4e360e643d101a8f2188a2318557b0430a89d5cd
GitHub-Last-Rev: 046943ff482ff8e5665a50f62fcb63fa3bcf868e
GitHub-Pull-Request: golang/go#65747
Reviewed-on: https://go-review.googlesource.com/c/go/+/564736
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/crypto/subtle/xor_test.go

index 7d89b83f40266e73760b5d8db3ba0122b582372a..a348660c6369f4f1377b6e7f0976fc350321d458 100644 (file)
@@ -63,14 +63,6 @@ func TestXorBytesPanic(t *testing.T) {
        })
 }
 
-func min(a, b []byte) int {
-       n := len(a)
-       if len(b) < n {
-               n = len(b)
-       }
-       return n
-}
-
 func BenchmarkXORBytes(b *testing.B) {
        dst := make([]byte, 1<<15)
        data0 := make([]byte, 1<<15)