Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M680X - remove unused s_cpu_type #1695

Merged
merged 1 commit into from
Oct 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions arch/M680X/M680XDisassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -2130,11 +2130,6 @@ static const cpu_tables g_cpu_tables[] = {
},
};

static const char * const 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)
Expand Down Expand Up @@ -2264,12 +2259,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));

Expand Down