Module: kamailio
Branch: 4.3
Commit: aac276a7fe9b518c147bc99cd31e732de2f3eadd
URL:
https://github.com/kamailio/kamailio/commit/aac276a7fe9b518c147bc99cd31e732…
Author: Camille Oudot <camille.oudot(a)orange.com>
Committer: Camille Oudot <camille.oudot(a)orange.com>
Date: 2015-06-02T10:27:03+02:00
mem: TLSF remove unused function
this removes one compiler warning from the issue #185
(cherry picked from commit 0fcbe4eb0fb5037f52e7d8338cff4f88b03a7969)
---
Modified: mem/tlsf.c
---
Diff:
https://github.com/kamailio/kamailio/commit/aac276a7fe9b518c147bc99cd31e732…
Patch:
https://github.com/kamailio/kamailio/commit/aac276a7fe9b518c147bc99cd31e732…
---
diff --git a/mem/tlsf.c b/mem/tlsf.c
index d4feb34..3547233 100644
--- a/mem/tlsf.c
+++ b/mem/tlsf.c
@@ -580,22 +580,6 @@ static void block_trim_used(control_t* control, block_header_t*
block, size_t si
}
}
-static block_header_t* block_trim_free_leading(control_t* control, block_header_t* block,
size_t size)
-{
- block_header_t* remaining_block = block;
- if (block_can_split(block, size))
- {
- /* We want the 2nd block. */
- remaining_block = block_split(block, size - block_header_overhead);
- block_set_prev_free(remaining_block);
-
- block_link_next(block);
- block_insert(control, block);
- }
-
- return remaining_block;
-}
-
static block_header_t* block_locate_free(control_t* control, size_t size)
{
int fl = 0, sl = 0;