From 97014c26a5db095f5b8d091420664124d1a6b7ee Mon Sep 17 00:00:00 2001 From: Hourier Date: Sat, 15 Feb 2020 00:33:17 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20=E4=BD=BF=E3=82=8F=E3=82=8C?= =?utf8?q?=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84=E3=83=97=E3=83=AA=E3=83=97?= =?utf8?q?=E3=83=ADVERBOSE=5FRALLOC=20=E3=82=92=E5=89=8A=E9=99=A4=20/=20Re?= =?utf8?q?moved=20unused=20preprocessor=20VERBOSE=5FRALLOC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/z-virt.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/z-virt.c b/src/z-virt.c index bd1559f8b..4c7ca1863 100644 --- a/src/z-virt.c +++ b/src/z-virt.c @@ -14,16 +14,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 */ vptr (*rnfree_aux)(vptr, huge) = NULL; @@ -36,21 +26,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; - - 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)); @@ -177,5 +152,3 @@ errr string_free(concptr str) /* Success */ return 0; } - - -- 2.11.0