From ba0369a5f611172ea57bc1fa6cd3df9f8e5ea439 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 13 Feb 2018 10:45:33 +0100 Subject: [PATCH] Kill unused private function mmalloc_get_increment(). --- src/xbt/mmalloc/mmprivate.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/xbt/mmalloc/mmprivate.h b/src/xbt/mmalloc/mmprivate.h index 389b55b907..640e09fe28 100644 --- a/src/xbt/mmalloc/mmprivate.h +++ b/src/xbt/mmalloc/mmprivate.h @@ -294,16 +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 int mmalloc_get_increment(malloc_info* heapinfo) { - if (heapinfo->type < 0) { - return heapinfo->free_block.size; - } else if (heapinfo->type == 0) { - return heapinfo->busy_block.size; - } else { - return 1; - } -} - XBT_PRIVATE int malloc_use_mmalloc(void); XBT_PRIVATE size_t mmalloc_get_bytes_used_remote(size_t heaplimit, const malloc_info* heapinfo); -- 2.20.1