[PATCH 2/2] Remove unused variables in stats_print

Mike Hommey mh+jemalloc at glandium.org
Tue Feb 21 05:18:59 PST 2012


From: Mike Hommey <mh at glandium.org>

---
 src/stats.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/stats.c b/src/stats.c
index 6d9ba9d..ee74ada 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -643,7 +643,6 @@ stats_print(void (*write_cb)(void *, const char *), void *cbopaque,
 	}
 
 	if (config_stats) {
-		size_t sszp, ssz;
 		size_t *cactive;
 		size_t allocated, active, mapped;
 		size_t chunks_current, chunks_high;
@@ -651,9 +650,6 @@ stats_print(void (*write_cb)(void *, const char *), void *cbopaque,
 		size_t huge_allocated;
 		uint64_t huge_nmalloc, huge_ndalloc;
 
-		sszp = sizeof(size_t *);
-		ssz = sizeof(size_t);
-
 		CTL_GET("stats.cactive", &cactive, size_t *);
 		CTL_GET("stats.allocated", &allocated, size_t);
 		CTL_GET("stats.active", &active, size_t);
-- 
1.7.9




More information about the jemalloc-discuss mailing list