From 86235ec2bf15ff90c4c6602063c40c9bf0325428 Mon Sep 17 00:00:00 2001 From: Michael Munday Date: Thu, 17 Oct 2019 13:54:39 +0100 Subject: [PATCH] cmd/asm/internal/arch: delete unused s390x functions These functions are not necessary and are not called anywhere. Change-Id: I1c0d814ba3044c27e3626ac9e6052d8154140404 Reviewed-on: https://go-review.googlesource.com/c/go/+/201697 Run-TryBot: Michael Munday TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/cmd/asm/internal/arch/s390x.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/cmd/asm/internal/arch/s390x.go b/src/cmd/asm/internal/arch/s390x.go index 0a4d278899..519d20877c 100644 --- a/src/cmd/asm/internal/arch/s390x.go +++ b/src/cmd/asm/internal/arch/s390x.go @@ -9,7 +9,6 @@ package arch import ( - "cmd/internal/obj" "cmd/internal/obj/s390x" ) @@ -59,26 +58,6 @@ func jumpS390x(word string) bool { return false } -// IsS390xCMP reports whether the op (as defined by an s390x.A* constant) is -// one of the CMP instructions that require special handling. -func IsS390xCMP(op obj.As) bool { - switch op { - case s390x.ACMP, s390x.ACMPU, s390x.ACMPW, s390x.ACMPWU: - return true - } - return false -} - -// IsS390xNEG reports whether the op (as defined by an s390x.A* constant) is -// one of the NEG-like instructions that require special handling. -func IsS390xNEG(op obj.As) bool { - switch op { - case s390x.ANEG, s390x.ANEGW: - return true - } - return false -} - func s390xRegisterNumber(name string, n int16) (int16, bool) { switch name { case "AR":