Skip to content

Commit

Permalink
remove now redundant insn_reverse_id() after alias handling simplific…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
aquynh committed Feb 18, 2014
1 parent 74c41eb commit 7f6db24
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
13 changes: 0 additions & 13 deletions utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,6 @@ int name2id(name_map* map, int max, const char *name)
return -1;
}

unsigned int insn_reverse_id(insn_map *insns, unsigned int max, unsigned int id)
{
unsigned int i;

for (i = 0; i < max; i++) {
if (id == insns[i].mapid)
return insns[i].id;
}

// found nothing
return 0;
}

// count number of positive members in a list.
// NOTE: list must be guaranteed to end in 0
unsigned int count_positive(unsigned char *list)
Expand Down
4 changes: 0 additions & 4 deletions utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ typedef struct name_map {
// return 0 if not found
int name2id(name_map* map, int max, const char *name);

// reverse mapid to id
// return 0 if not found
unsigned int insn_reverse_id(insn_map *insns, unsigned int max, unsigned int id);

// count number of positive members in a list.
// NOTE: list must be guaranteed to end in 0
unsigned int count_positive(unsigned char *list);
Expand Down

0 comments on commit 7f6db24

Please sign in to comment.