remove redundant code (pr #674 by @rganesan)

This commit is contained in:
Daan Leijen 2023-03-29 16:19:07 -07:00
parent accdc4de70
commit 06b94fc5e6
1 changed files with 0 additions and 3 deletions

View File

@ -226,9 +226,6 @@ static void mi_heap_reset_pages(mi_heap_t* heap) {
mi_assert_internal(mi_heap_is_initialized(heap));
// TODO: copy full empty heap instead?
memset(&heap->pages_free_direct, 0, sizeof(heap->pages_free_direct));
#ifdef MI_MEDIUM_DIRECT
memset(&heap->pages_free_medium, 0, sizeof(heap->pages_free_medium));
#endif
_mi_memcpy_aligned(&heap->pages, &_mi_heap_empty.pages, sizeof(heap->pages));
heap->thread_delayed_free = NULL;
heap->page_count = 0;