remove pointless heap count

pull/13228/head
Paul Szczeanek 2020-06-08 18:51:07 +01:00 committed by Vincent Coubard
parent 260e5016dc
commit c61f84b97c
1 changed files with 0 additions and 6 deletions

View File

@ -37,8 +37,6 @@
extern uint8_t *SystemHeapStart; extern uint8_t *SystemHeapStart;
extern uint32_t SystemHeapSize; 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) uint32_t WsfHeapCountUsed(void)
{ {
#ifdef __GNUC__
return ((uint8_t *)&__heap_end__ - (uint8_t *)&__heap_start__) - SystemHeapSize;
#else
return 0; return 0;
#endif
} }