This function has never been used and its usefulness is dubious. So, remove it. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- show-parse.c | 10 ---------- symbol.h | 1 - 2 files changed, 11 deletions(-) diff --git a/show-parse.c b/show-parse.c index c73ee4dd1..7bff8f95f 100644 --- a/show-parse.c +++ b/show-parse.c @@ -269,16 +269,6 @@ const char *builtin_typename(struct symbol *sym) return NULL; } -const char *builtin_ctypename(struct ctype *ctype) -{ - int i; - - for (i = 0; i < ARRAY_SIZE(typenames); i++) - if (&typenames[i].sym->ctype == ctype) - return typenames[i].name; - return NULL; -} - static void do_show_type(struct symbol *sym, struct type_name *name) { const char *typename; diff --git a/symbol.h b/symbol.h index d4c4d1205..91e1ea730 100644 --- a/symbol.h +++ b/symbol.h @@ -320,7 +320,6 @@ extern struct symbol *examine_pointer_target(struct symbol *); extern const char *show_as(struct ident *as); extern const char *show_typename(struct symbol *sym); extern const char *builtin_typename(struct symbol *sym); -extern const char *builtin_ctypename(struct ctype *ctype); extern const char* get_type_name(enum type type); extern void debug_symbol(struct symbol *); -- 2.20.0