Received: from eggs.gnu.org ([2001:4830:134:3::10]:37889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn7hn-000658-3S for qemu-devel@nongnu.org; Thu, 22 Sep 2016 13:22:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn7hl-0002qQ-6E for qemu-devel@nongnu.org; Thu, 22 Sep 2016 13:22:38 -0400 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:47106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn7hl-0002qD-0c for qemu-devel@nongnu.org; Thu, 22 Sep 2016 13:22:37 -0400 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.84_2) (envelope-from ) id 1bn7hk-0007Of-Jo for qemu-devel@nongnu.org; Thu, 22 Sep 2016 18:22:36 +0100 From: Peter Maydell Date: Thu, 22 Sep 2016 18:22:14 +0100 Message-Id: <1474564935-23831-36-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1474564935-23831-1-git-send-email-peter.maydell@linaro.org> References: <1474564935-23831-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 35/36] disas/arm.c: Remove unused macro definitions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The macros ISSPACE, strneq, NUM_ELEMS and NUM_ARM_REGNAMES are defined in disas/arm.c but never used. Remove the unnecessary definitions. Signed-off-by: Peter Maydell --- disas/arm.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/disas/arm.c b/disas/arm.c index 426270f..93c6503 100644 --- a/disas/arm.c +++ b/disas/arm.c @@ -24,7 +24,6 @@ #include "qemu/osdep.h" #include "disas/bfd.h" -#define ISSPACE(x) ((x) == ' ' || (x) == '\t' || (x) == '\n') #define ARM_EXT_V1 0 #define ARM_EXT_V2 0 @@ -73,15 +72,6 @@ static void floatformat_to_double (unsigned char *data, double *dest) /* End of qemu specific additions. */ -/* FIXME: Belongs in global header. */ -#ifndef strneq -#define strneq(a,b,n) (strncmp ((a), (b), (n)) == 0) -#endif - -#ifndef NUM_ELEM -#define NUM_ELEM(a) (sizeof (a) / sizeof (a)[0]) -#endif - struct opcode32 { unsigned long arch; /* Architecture defining this insn. */ @@ -1528,7 +1518,6 @@ static const char *const iwmmxt_cregnames[] = /* Default to GCC register name set. */ static unsigned int regname_selected = 1; -#define NUM_ARM_REGNAMES NUM_ELEM (regnames) #define arm_regnames regnames[regname_selected].reg_names static bfd_boolean force_thumb = false; -- 2.7.4