core: Remove unused cu__string() method

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-06-28 13:40:13 -03:00
parent a201149e18
commit 05687c547e
2 changed files with 0 additions and 14 deletions

View File

@ -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)

View File

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