[5/6] show-parse: remove unused builtin_ctypename()
diff mbox series

Message ID 20181216172151.1361-6-luc.vanoostenryck@gmail.com
State Superseded, archived
Headers show
Series
  • small improvements of show_typename()
Related show

Commit Message

Luc Van Oostenryck Dec. 16, 2018, 5:21 p.m. UTC
This function has never been used and its usefulness is dubious.
So, remove it.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 show-parse.c | 10 ----------
 symbol.h     |  1 -
 2 files changed, 11 deletions(-)

Patch
diff mbox series

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 *);