1
0
mirror of https://github.com/golang/go synced 2024-09-29 17:14:29 -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:
kadern0 2020-03-22 17:33:52 +11:00 committed by Michael Munday
parent 683c266f95
commit 9a2db7c41b

View File

@ -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() {