summaryrefslogtreecommitdiffhomepage
path: root/ir/common
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2013-11-11 13:17:03 +0100
committerMatthias Braun <matze@braunis.de>2013-11-11 15:26:19 +0100
commit2ecee6eb93822bec74d0f40bcbacbff95f5efeae (patch)
treea71f05bc053d5c4cb0483ba8453007459191d714 /ir/common
parent473aaab71fe54403cd5c9ff19a901ef8f7bf9c13 (diff)
remove ir_get_heap_used_bytes() API
The API is not really used, has nothing to do with compilers and uses glibc/linux/windows specific extensions.
Diffstat (limited to 'ir/common')
-rw-r--r--ir/common/timing.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/ir/common/timing.c b/ir/common/timing.c
index d3768a9..a6f0a3f 100644
--- a/ir/common/timing.c
+++ b/ir/common/timing.c
@@ -271,41 +271,6 @@ int ir_timer_leave_high_priority(void)
#endif
-
-#ifdef __linux__
-
-#include <malloc.h>
-size_t ir_get_heap_used_bytes(void)
-{
- struct mallinfo mi = mallinfo();
- return mi.uordblks;
-}
-
-#elif defined(_WIN32) /* __linux__ */
-
-#include <malloc.h>
-
-size_t ir_get_heap_used_bytes(void)
-{
- _HEAPINFO hinfo;
- int heapstatus;
- size_t res = 0;
- hinfo._pentry = NULL;
- while ((heapstatus = _heapwalk(&hinfo)) == _HEAPOK)
- res += hinfo._useflag == _USEDENTRY ? hinfo._size : 0;
- return res;
-}
-
-#else
-
-size_t ir_get_heap_used_bytes(void)
-{
- fprintf(stderr, "function not implemented\n");
- return 0;
-}
-
-#endif
-
/* reset a timer */
void ir_timer_reset(ir_timer_t *timer)
{