[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:
Arnaldo Carvalho de Melo 2007-01-10 19:48:46 -02:00
parent 465c4978b7
commit 5410d62210
1 changed files with 0 additions and 15 deletions

View File

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