From 7cec31e453b214bd0f4b8ccd956968c69c7739ef Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 17 Oct 2017 15:02:06 +0200 Subject: [PATCH] Kill empty function. --- src/xbt/mmalloc/mfree.c | 1 - src/xbt/mmalloc/mmalloc.c | 2 -- src/xbt/mmalloc/mmprivate.h | 6 ------ 3 files changed, 9 deletions(-) diff --git a/src/xbt/mmalloc/mfree.c b/src/xbt/mmalloc/mfree.c index 7ee5e76c2d..47efab762f 100644 --- a/src/xbt/mmalloc/mfree.c +++ b/src/xbt/mmalloc/mfree.c @@ -24,7 +24,6 @@ void mfree(struct mdesc *mdp, void *ptr) size_t i; int it; - mmalloc_paranoia(mdp); // fprintf(stderr,"free(%p)\n",ptr); if (ptr == NULL) diff --git a/src/xbt/mmalloc/mmalloc.c b/src/xbt/mmalloc/mmalloc.c index a4e7f9fb5d..47a86d607d 100644 --- a/src/xbt/mmalloc/mmalloc.c +++ b/src/xbt/mmalloc/mmalloc.c @@ -187,8 +187,6 @@ void *mmalloc_no_memset(xbt_mheap_t mdp, size_t size) if (!(mdp->flags & MMALLOC_INITIALIZED)) initialize(mdp); - mmalloc_paranoia(mdp); - /* Determine the allocation policy based on the request size. */ if (size <= BLOCKSIZE / 2) { /* Small allocation to receive a fragment of a block. diff --git a/src/xbt/mmalloc/mmprivate.h b/src/xbt/mmalloc/mmprivate.h index 5e6609d9c1..2fdc94c9bd 100644 --- a/src/xbt/mmalloc/mmprivate.h +++ b/src/xbt/mmalloc/mmprivate.h @@ -294,12 +294,6 @@ XBT_PUBLIC( void *)mmorecore(struct mdesc *mdp, ssize_t size); #define LOCK(mdp) pthread_mutex_lock(&mdp->mutex) #define UNLOCK(mdp) pthread_mutex_unlock(&mdp->mutex) -static inline void mmalloc_paranoia(struct mdesc *mdp){ - - /* nothing to fear for no */ - -} - static inline int mmalloc_get_increment(malloc_info* heapinfo) { if (heapinfo->type < 0) { return heapinfo->free_block.size; -- 2.20.1