aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/http.go
diff options
context:
space:
mode:
author1911860538 <alxps1911@gmail.com>2025-11-10 11:17:01 +0000
committerGopher Robot <gobot@golang.org>2025-11-13 13:55:31 -0800
commit17a02b910697800032aa686548992a554e8e9d82 (patch)
tree72afa1afdd6682d1bb6aaa4c1cee41311c6fa664 /src/net/http/http.go
parentff61991aed2871301e3f4fafff65fd67d6b170b5 (diff)
downloadgo-17a02b910697800032aa686548992a554e8e9d82.tar.xz
net/http: remove unused isLitOrSingle and isNotToken
isLitOrSingle and isNotToken are private and unused. Change-Id: I07718d4496e92d5f75ed74986e174a8aa1f70a88 GitHub-Last-Rev: 722c4dccd85dca5d28a52e95a4f9efbab2b11807 GitHub-Pull-Request: golang/go#76216 Reviewed-on: https://go-review.googlesource.com/c/go/+/718700 Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Sean Liao <sean@liao.dev> Reviewed-by: Junyang Shao <shaojunyang@google.com> Reviewed-by: Sean Liao <sean@liao.dev> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/net/http/http.go')
-rw-r--r--src/net/http/http.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/net/http/http.go b/src/net/http/http.go
index e7959fa3b6..d346e60646 100644
--- a/src/net/http/http.go
+++ b/src/net/http/http.go
@@ -119,10 +119,6 @@ func removeEmptyPort(host string) string {
return host
}
-func isNotToken(r rune) bool {
- return !httpguts.IsTokenRune(r)
-}
-
// isToken reports whether v is a valid token (https://www.rfc-editor.org/rfc/rfc2616#section-2.2).
func isToken(v string) bool {
// For historical reasons, this function is called ValidHeaderFieldName (see issue #67031).