From 5cc365164a4cba467460c6cb9618d7a159c5a148 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() method Signed-off-by: Arnaldo Carvalho de Melo --- dwarves.c | 8 -------- dwarves.h | 1 - 2 files changed, 9 deletions(-) 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);