mirror of
https://github.com/golang/go
synced 2024-09-29 19:14:28 -06:00
cmd/compile: remove unused isIntOrdering method
Fixes #37989 Change-Id: Iabf86529fde3be9a98222b7e8d09ff8301cf8830 Reviewed-on: https://go-review.googlesource.com/c/go/+/224777 Reviewed-by: Michael Munday <mike.munday@ibm.com> Run-TryBot: Michael Munday <mike.munday@ibm.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
683c266f95
commit
9a2db7c41b
@ -3527,16 +3527,6 @@ func finishcompare(n, r *Node, init *Nodes) *Node {
|
||||
return r
|
||||
}
|
||||
|
||||
// isIntOrdering reports whether n is a <, ≤, >, or ≥ ordering between integers.
|
||||
func (n *Node) isIntOrdering() bool {
|
||||
switch n.Op {
|
||||
case OLE, OLT, OGE, OGT:
|
||||
default:
|
||||
return false
|
||||
}
|
||||
return n.Left.Type.IsInteger() && n.Right.Type.IsInteger()
|
||||
}
|
||||
|
||||
// return 1 if integer n must be in range [0, max), 0 otherwise
|
||||
func bounded(n *Node, max int64) bool {
|
||||
if n.Type == nil || !n.Type.IsInteger() {
|
||||
|
Loading…
Reference in New Issue
Block a user