From f8d98eff756bf406d9c59c62f64a5821a5071393 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Fri, 25 Jun 2021 10:09:42 -0300 Subject: [PATCH] core: Ditch unused enumeration__prefix_len() method Signed-off-by: Arnaldo Carvalho de Melo --- dwarves.c | 9 --------- dwarves.h | 2 -- 2 files changed, 11 deletions(-) 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,