diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-06-06 01:08:22 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-08-10 12:47:37 -0400 |
commit | e63d725ad4fb92a0085224f627cbced3e3205735 (patch) | |
tree | 5c6640be99bf9da8965d49a324dfacfc9e69b216 /util/malloc-stats.c | |
parent | d4d0fcb4a8055f1fdd24fc5b7b64bb55d55e1485 (diff) |
[utils] Remove unused code
Diffstat (limited to 'util/malloc-stats.c')
-rw-r--r-- | util/malloc-stats.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/util/malloc-stats.c b/util/malloc-stats.c index ddf88492..d189260d 100644 --- a/util/malloc-stats.c +++ b/util/malloc-stats.c @@ -105,36 +105,6 @@ _perm_alloc (size_t size) return ret; } -static const char * -resolve_addr (const void *addr) { - - char **strings; - char *p; - char *name; - int len; - - if (addr == NULL) - return "(other)"; - if (addr == (void *) -1) - return "(total)"; - - strings = backtrace_symbols ((void**)&addr, 1); - - p = strchr (strings[0], '\t'); - if (p) - p++; - else - p = strings[0]; - - len = strlen (p) + 1; - name = _perm_alloc (len); - memcpy (name, p, len); - - free (strings); - - return name; -} - static void resolve_addrs (struct func_stat_t *func_stats, int num) { |