Skip to content

Commit

Permalink
x86: delete dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed May 28, 2014
1 parent b2e566a commit d69f9de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
16 changes: 0 additions & 16 deletions arch/X86/X86Mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,22 +334,6 @@ const char *X86_reg_name(csh handle, unsigned int reg)
#endif
}

// map register string to register ID
x86_reg x86_map_regname(const char *reg)
{
#ifndef CAPSTONE_DIET
int i = name2id(&reg_name_maps[1], ARR_SIZE(reg_name_maps) - 1, reg);

if (i != -1)
return i;

// nothing match
return (i != -1)? i : X86_REG_INVALID;
#else
return 0;
#endif
}

#ifndef CAPSTONE_DIET
static name_map insn_name_maps[] = {
{ X86_INS_INVALID, NULL },
Expand Down
3 changes: 0 additions & 3 deletions arch/X86/X86Mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ x86_reg x86_map_sib_index(int r);
// map seg_override to x86_reg
x86_reg x86_map_segment(int r);

// map register name to x86_reg
x86_reg x86_map_regname(const char *reg);

// return name of regiser in friendly string
const char *X86_reg_name(csh handle, unsigned int reg);

Expand Down

0 comments on commit d69f9de

Please sign in to comment.