diff options
Diffstat (limited to 'src/net/http/pattern.go')
| -rw-r--r-- | src/net/http/pattern.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/net/http/pattern.go b/src/net/http/pattern.go index 0c8644d9cd..f6af19b0f4 100644 --- a/src/net/http/pattern.go +++ b/src/net/http/pattern.go @@ -180,20 +180,6 @@ func parsePattern(s string) (_ *pattern, err error) { return p, nil } -// TODO(jba): remove this; it is unused. -func isValidHTTPToken(s string) bool { - if s == "" { - return false - } - // See https://www.rfc-editor.org/rfc/rfc9110#section-5.6.2. - for _, r := range s { - if !unicode.IsLetter(r) && !unicode.IsDigit(r) && !strings.ContainsRune("!#$%&'*+.^_`|~-", r) { - return false - } - } - return true -} - func isValidWildcardName(s string) bool { if s == "" { return false |
