diff --git a/jerry-core/jmem/jmem-allocator-internal.h b/jerry-core/jmem/jmem-allocator-internal.h index 6b5b730ad..77cb0c4b6 100644 --- a/jerry-core/jmem/jmem-allocator-internal.h +++ b/jerry-core/jmem/jmem-allocator-internal.h @@ -60,9 +60,6 @@ void jmem_run_free_unused_memory_callbacks (jmem_free_unused_memory_severity_t s * \addtogroup poolman Memory pool manager * @{ */ -#ifdef JMEM_STATS -void jmem_pools_stats_print (void); -#endif /* JMEM_STATS */ void jmem_pools_finalize (void); void jmem_pools_collect_empty (void); diff --git a/jerry-core/jmem/jmem-allocator.c b/jerry-core/jmem/jmem-allocator.c index 10f880f88..8c42d3952 100644 --- a/jerry-core/jmem/jmem-allocator.c +++ b/jerry-core/jmem/jmem-allocator.c @@ -25,15 +25,6 @@ #include "jmem-allocator-internal.h" #ifdef JMEM_STATS -/** - * Print memory usage statistics - */ -static void -jmem_stats_print (void) -{ - jmem_heap_stats_print (); -} /* jmem_stats_print */ - /** * Register byte code allocation. */ @@ -172,7 +163,7 @@ jmem_finalize (void) #ifdef JMEM_STATS if (JERRY_CONTEXT (jerry_init_flags) & ECMA_INIT_MEM_STATS) { - jmem_stats_print (); + jmem_heap_stats_print (); } #endif /* JMEM_STATS */