[CLASSES]: Ditch union__print, not used at all
[acme@newtoy pahole]$ codiff -V build/libclasses.so.orig build/libclasses.so /home/acme/pahole/classes.c: union__print | -198 (removed) 1 function changed, 198 bytes removed [acme@newtoy pahole]$ Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
parent
465c4978b7
commit
5410d62210
15
classes.c
15
classes.c
|
@ -1091,21 +1091,6 @@ static size_t union__snprintf(const struct type *self, const struct cu *cu,
|
|||
return len - l;
|
||||
}
|
||||
|
||||
static void union__print(const struct type *self, const struct cu *cu,
|
||||
const char *suffix, uint8_t ntabs)
|
||||
{
|
||||
struct enumerator *pos;
|
||||
char bf[4096];
|
||||
|
||||
if (ntabs >= sizeof(tabs))
|
||||
ntabs = sizeof(tabs) - 1;
|
||||
|
||||
printf("%.*s/* %s:%u */\n", ntabs, tabs,
|
||||
self->tag.decl_file, self->tag.decl_line);
|
||||
union__snprintf(self, cu, bf, sizeof(bf), suffix, ntabs, 0, 0);
|
||||
printf("%s\n", bf);
|
||||
}
|
||||
|
||||
static struct class *class__new(Dwarf_Die *die)
|
||||
{
|
||||
struct class *self = zalloc(sizeof(*self));
|
||||
|
|
Loading…
Reference in New Issue