From 2627d2d1897741d0839fc57047741c3c8ce9ffa4 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 25 May 2023 12:37:52 +0200 Subject: [PATCH] os: remove unused containsAny It's unused since CL 455716. Change-Id: I78bf7ad0e546c7dda8e78b911feb6399e1e6e088 Reviewed-on: https://go-review.googlesource.com/c/go/+/498235 Run-TryBot: Tobias Klauser TryBot-Result: Gopher Robot Reviewed-by: Damien Neil Reviewed-by: Heschi Kreinick Auto-Submit: Tobias Klauser --- src/os/file.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/os/file.go b/src/os/file.go index 7fd2f5d2027..806c1f20459 100644 --- a/src/os/file.go +++ b/src/os/file.go @@ -622,18 +622,6 @@ func DirFS(dir string) fs.FS { return dirFS(dir) } -// containsAny reports whether any bytes in chars are within s. -func containsAny(s, chars string) bool { - for i := 0; i < len(s); i++ { - for j := 0; j < len(chars); j++ { - if s[i] == chars[j] { - return true - } - } - } - return false -} - type dirFS string func (dir dirFS) Open(name string) (fs.File, error) {