]> Cypherpunks repositories - gostls13.git/commitdiff
os: remove unused containsAny
authorTobias Klauser <tklauser@distanz.ch>
Thu, 25 May 2023 10:37:52 +0000 (12:37 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 20 Jul 2023 17:55:33 +0000 (17:55 +0000)
It's unused since CL 455716.

Change-Id: I78bf7ad0e546c7dda8e78b911feb6399e1e6e088
Reviewed-on: https://go-review.googlesource.com/c/go/+/498235
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>

src/os/file.go

index 7fd2f5d20271423b1da96bf68d6435827cf00c52..806c1f204591db362ea2f0f2bcf055ad74f4e89a 100644 (file)
@@ -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) {