Skip to content

Commit 722c4dc

Browse files
author
1911860538
committed
net/http: remove unused function isNotToken
1 parent a97c8f4 commit 722c4dc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/net/http/http.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ func removeEmptyPort(host string) string {
119119
return host
120120
}
121121

122-
func isNotToken(r rune) bool {
123-
return !httpguts.IsTokenRune(r)
124-
}
125-
126122
// isToken reports whether v is a valid token (https://www.rfc-editor.org/rfc/rfc2616#section-2.2).
127123
func isToken(v string) bool {
128124
// For historical reasons, this function is called ValidHeaderFieldName (see issue #67031).

0 commit comments

Comments
 (0)