diff --git a/dwarves.c b/dwarves.c index 9c68f4e..8802df8 100644 --- a/dwarves.c +++ b/dwarves.c @@ -1746,15 +1746,6 @@ void enumerations__calc_prefix(struct list_head *enumerations) enumeration__calc_prefix(tag__type(pos->tc.tag)); } -uint16_t enumeration__prefix_len(struct type *enumeration, const struct cu *cu) -{ - if (!enumeration->member_prefix) - enumeration__calc_prefix(enumeration); - - return enumeration->member_prefix_len; -} - - uint32_t type__nr_members_of_type(const struct type *type, const type_id_t type_id) { struct class_member *pos; diff --git a/dwarves.h b/dwarves.h index 6843e73..9752c8d8 100644 --- a/dwarves.h +++ b/dwarves.h @@ -1087,8 +1087,6 @@ struct class_member *type__find_member_by_name(const struct type *type, const ch uint32_t type__nr_members_of_type(const struct type *type, const type_id_t oftype); struct class_member *type__last_member(struct type *type); -uint16_t enumeration__prefix_len(struct type *type, const struct cu *cu); - void enumerations__calc_prefix(struct list_head *enumerations); size_t typedef__fprintf(const struct tag *tag_type, const struct cu *cu,