aboutsummaryrefslogtreecommitdiff
path: root/src/bytes/bytes_amd64.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytes/bytes_amd64.go')
-rw-r--r--src/bytes/bytes_amd64.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/bytes/bytes_amd64.go b/src/bytes/bytes_amd64.go
index 0c9d613ef9..2fc88c68fc 100644
--- a/src/bytes/bytes_amd64.go
+++ b/src/bytes/bytes_amd64.go
@@ -77,12 +77,3 @@ func Index(s, sep []byte) int {
}
return indexRabinKarp(s, sep)
}
-
-// Count counts the number of non-overlapping instances of sep in s.
-// If sep is an empty slice, Count returns 1 + the number of UTF-8-encoded code points in s.
-func Count(s, sep []byte) int {
- if len(sep) == 1 && cpu.X86.HasPOPCNT {
- return countByte(s, sep[0])
- }
- return countGeneric(s, sep)
-}