From 05687c547e9f22e845e815fbda684efceaadd51c Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Mon, 28 Jun 2021 13:40:13 -0300 Subject: [PATCH] core: Remove unused cu__string() method Signed-off-by: Arnaldo Carvalho de Melo --- dwarves.c | 12 ------------ dwarves.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/dwarves.c b/dwarves.c index 7d693b6..ba9a716 100644 --- a/dwarves.c +++ b/dwarves.c @@ -67,18 +67,6 @@ bool tag__is_array(const struct tag *tag, const struct cu *cu) return 0; } -const char *cu__string(const struct cu *cu, strings_t s) -{ - if (cu->dfops && cu->dfops->strings__ptr) - return cu->dfops->strings__ptr(cu, s); - return NULL; -} - -static inline const char *s(const struct cu *cu, strings_t i) -{ - return cu__string(cu, i); -} - int __tag__has_type_loop(const struct tag *tag, const struct tag *type, char *bf, size_t len, FILE *fp, const char *fn, int line) diff --git a/dwarves.h b/dwarves.h index e398ea6..90e2f4d 100644 --- a/dwarves.h +++ b/dwarves.h @@ -246,8 +246,6 @@ struct cu *cu__new(const char *name, uint8_t addr_size, const char *filename); void cu__delete(struct cu *cu); -const char *cu__string(const struct cu *cu, strings_t s); - static inline int cu__cache_symtab(struct cu *cu) { int err = dwfl_module_getsymtab(cu->dwfl);