summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-06-28 06:28:19 +0200
committerBardur Arantsson <bardur@scientician.net>2012-06-28 06:28:19 +0200
commit3b0a9bcf376ab893751991199aea5888932accc5 (patch)
tree374ae6ba00b97f0231e26f2198dc4450e65b0fb5
parentc0d4c414589ab6d43df5bbaa364564cb9c288e4a (diff)
Remove VERBOSE_RALLOC preprocessor define
-rw-r--r--src/z-virt.c42
1 files changed, 0 insertions, 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
@@ -16,16 +16,6 @@
/*
- * 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;
@@ -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);