Skip to content

Commit a97c8f4

Browse files
author
1911860538
committed
net/http: remove unused function isLitOrSingle
1 parent ad3ccd9 commit a97c8f4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/net/http/pattern.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -394,14 +394,6 @@ func inverseRelationship(r relationship) relationship {
394394
}
395395
}
396396

397-
// isLitOrSingle reports whether the segment is a non-dollar literal or a single wildcard.
398-
func isLitOrSingle(seg segment) bool {
399-
if seg.wild {
400-
return !seg.multi
401-
}
402-
return seg.s != "/"
403-
}
404-
405397
// describeConflict returns an explanation of why two patterns conflict.
406398
func describeConflict(p1, p2 *pattern) string {
407399
mrel := p1.compareMethods(p2)

0 commit comments

Comments
 (0)