mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net/http: remove unused isLitOrSingle and isNotToken
isLitOrSingle and isNotToken are private and unused.
Change-Id: I07718d4496e92d5f75ed74986e174a8aa1f70a88
GitHub-Last-Rev: 722c4dccd8
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>
This commit is contained in:
parent
ff61991aed
commit
17a02b9106
2 changed files with 0 additions and 12 deletions
|
|
@ -119,10 +119,6 @@ func removeEmptyPort(host string) string {
|
||||||
return host
|
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).
|
// isToken reports whether v is a valid token (https://www.rfc-editor.org/rfc/rfc2616#section-2.2).
|
||||||
func isToken(v string) bool {
|
func isToken(v string) bool {
|
||||||
// For historical reasons, this function is called ValidHeaderFieldName (see issue #67031).
|
// For historical reasons, this function is called ValidHeaderFieldName (see issue #67031).
|
||||||
|
|
|
||||||
|
|
@ -394,14 +394,6 @@ func inverseRelationship(r relationship) relationship {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// isLitOrSingle reports whether the segment is a non-dollar literal or a single wildcard.
|
|
||||||
func isLitOrSingle(seg segment) bool {
|
|
||||||
if seg.wild {
|
|
||||||
return !seg.multi
|
|
||||||
}
|
|
||||||
return seg.s != "/"
|
|
||||||
}
|
|
||||||
|
|
||||||
// describeConflict returns an explanation of why two patterns conflict.
|
// describeConflict returns an explanation of why two patterns conflict.
|
||||||
func describeConflict(p1, p2 *pattern) string {
|
func describeConflict(p1, p2 *pattern) string {
|
||||||
mrel := p1.compareMethods(p2)
|
mrel := p1.compareMethods(p2)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue