From c61f84b97cc4a8ad58f960f630e8d2a654ead540 Mon Sep 17 00:00:00 2001 From: Paul Szczeanek Date: Mon, 8 Jun 2020 18:51:07 +0100 Subject: [PATCH] remove pointless heap count --- .../stack/wsf/sources/port/baremetal/wsf_heap.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/wsf/sources/port/baremetal/wsf_heap.c b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/wsf/sources/port/baremetal/wsf_heap.c index cb5a444969..a16fe67f28 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/wsf/sources/port/baremetal/wsf_heap.c +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/wsf/sources/port/baremetal/wsf_heap.c @@ -37,8 +37,6 @@ extern uint8_t *SystemHeapStart; extern uint32_t SystemHeapSize; -extern unsigned long __heap_end__; -extern unsigned long __heap_start__; /*************************************************************************************************/ /*! @@ -89,9 +87,5 @@ uint32_t WsfHeapCountAvailable(void) /*************************************************************************************************/ uint32_t WsfHeapCountUsed(void) { -#ifdef __GNUC__ - return ((uint8_t *)&__heap_end__ - (uint8_t *)&__heap_start__) - SystemHeapSize; -#else return 0; -#endif }