From 0351008e6e6494da3e953a34ce8862fe2ca3e26e Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Thu, 29 Oct 2020 12:29:49 +0800 Subject: [PATCH] M680X - remove unused s_cpu_type (#1695) --- arch/M680X/M680XDisassembler.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arch/M680X/M680XDisassembler.c b/arch/M680X/M680XDisassembler.c index ef02fbcf90..bb418de361 100644 --- a/arch/M680X/M680XDisassembler.c +++ b/arch/M680X/M680XDisassembler.c @@ -2121,11 +2121,6 @@ static const cpu_tables g_cpu_tables[] = { }, }; -static const char *s_cpu_type[] = { - "INVALID", "6301", "6309", "6800", "6801", "6805", "6808", - "6809", "6811", "CPU12", "HCS08", -}; - static bool m680x_setup_internals(m680x_info *info, e_cpu_type cpu_type, uint16_t address, const uint8_t *code, uint16_t code_len) @@ -2255,12 +2250,6 @@ cs_err M680X_disassembler_init(cs_struct *ud) return CS_ERR_MODE; } - if (M680X_CPU_TYPE_ENDING != ARR_SIZE(s_cpu_type)) { - CS_ASSERT(M680X_CPU_TYPE_ENDING == ARR_SIZE(s_cpu_type)); - - return CS_ERR_MODE; - } - if (M680X_CPU_TYPE_ENDING != ARR_SIZE(g_cpu_tables)) { CS_ASSERT(M680X_CPU_TYPE_ENDING == ARR_SIZE(g_cpu_tables));