From 3b0a9bcf376ab893751991199aea5888932accc5 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Thu, 28 Jun 2012 06:28:19 +0200 Subject: Remove VERBOSE_RALLOC preprocessor define --- src/z-virt.c | 42 ------------------------------------------ 1 file changed, 42 deletions(-) diff --git a/src/z-virt.c b/src/z-virt.c index c9277166..92632080 100644 --- a/src/z-virt.c +++ b/src/z-virt.c @@ -15,16 +15,6 @@ #include "z-util.h" -/* - * Allow debugging messages to track memory usage. - */ -#ifdef VERBOSE_RALLOC -static long virt_make = 0; -static long virt_kill = 0; -static long virt_size = 0; -#endif - - /* * Optional auxiliary "rnfree" function */ @@ -38,22 +28,6 @@ vptr rnfree(vptr p, huge len) /* Easy to free zero bytes */ if (len == 0) return (NULL); -#ifdef VERBOSE_RALLOC - - /* Decrease memory count */ - virt_kill += len; - - /* Message */ - if (len > virt_size) - { - char buf[80]; - sprintf(buf, "Kill (%ld): %ld - %ld = %ld.", - len, virt_make, virt_kill, virt_make - virt_kill); - plog(buf); - } - -#endif - /* Use the "aux" function */ if (rnfree_aux) return ((*rnfree_aux)(p, len)); @@ -105,22 +79,6 @@ vptr ralloc(huge len) /* Allow allocation of "zero bytes" */ if (len == 0) return ((vptr)(NULL)); -#ifdef VERBOSE_RALLOC - - /* Count allocated memory */ - virt_make += len; - - /* Log important allocations */ - if (len > virt_size) - { - char buf[80]; - sprintf(buf, "Make (%ld): %ld - %ld = %ld.", - len, virt_make, virt_kill, virt_make - virt_kill); - plog(buf); - } - -#endif - /* Use the aux function if set */ if (ralloc_aux) mem = (*ralloc_aux)(len); -- cgit v1.2.3