From: Arnaud Giersch Date: Tue, 13 Feb 2018 09:45:33 +0000 (+0100) Subject: Kill unused private function mmalloc_get_increment(). X-Git-Tag: v3.19~224 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ba0369a5f611172ea57bc1fa6cd3df9f8e5ea439?ds=sidebyside Kill unused private function mmalloc_get_increment(). --- 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);