[cairo-commit] util/malloc-stats.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Mon Aug 10 09:49:47 PDT 2009


 util/malloc-stats.c |   30 ------------------------------
 1 file changed, 30 deletions(-)

New commits:
commit e63d725ad4fb92a0085224f627cbced3e3205735
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Sat Jun 6 01:08:22 2009 -0400

    [utils] Remove unused code

diff --git a/util/malloc-stats.c b/util/malloc-stats.c
index ddf8849..d189260 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)
 {


More information about the cairo-commit mailing list