diff --git a/dwarves.c b/dwarves.c index fca0f9a..9c68f4e 100644 --- a/dwarves.c +++ b/dwarves.c @@ -1746,14 +1746,6 @@ void enumerations__calc_prefix(struct list_head *enumerations) enumeration__calc_prefix(tag__type(pos->tc.tag)); } -const char *enumeration__prefix(struct type *enumeration, const struct cu *cu) -{ - if (!enumeration->member_prefix) - enumeration__calc_prefix(enumeration); - - return enumeration->member_prefix; -} - uint16_t enumeration__prefix_len(struct type *enumeration, const struct cu *cu) { if (!enumeration->member_prefix) diff --git a/dwarves.h b/dwarves.h index be38b52..6843e73 100644 --- a/dwarves.h +++ b/dwarves.h @@ -1087,7 +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); -const char *enumeration__prefix(struct type *type, const struct cu *cu); uint16_t enumeration__prefix_len(struct type *type, const struct cu *cu); void enumerations__calc_prefix(struct list_head *enumerations);