summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-03-31 21:11:03 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-04-28 11:19:13 +0100
commit1756d3d64bd61b1a7e842ad53c60ed37b3153770 (patch)
treee46f54249e3c8127b3044bd2fe9b937e18e5e578
parent8e76f63cc42c800a636f069da7be95fe8b1de82e (diff)
intel: remove unused mmFindBlock
The function was never part of the public API and a release or so back was hidden from the global name-space (list of exported symbols). According to git log this function was never used internally. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r--intel/mm.c12
-rw-r--r--intel/mm.h7
2 files changed, 0 insertions, 19 deletions
diff --git a/intel/mm.c b/intel/mm.c
index 10697452..10b74bf0 100644
--- a/intel/mm.c
+++ b/intel/mm.c
@@ -191,18 +191,6 @@ struct mem_block *mmAllocMem(struct mem_block *heap, int size, int align2,
return p;
}
-struct mem_block *mmFindBlock(struct mem_block *heap, int start)
-{
- struct mem_block *p;
-
- for (p = heap->next; p != heap; p = p->next) {
- if (p->ofs == start)
- return p;
- }
-
- return NULL;
-}
-
static int Join2Blocks(struct mem_block *p)
{
/* XXX there should be some assertions here */
diff --git a/intel/mm.h b/intel/mm.h
index a6ee1022..c7dd8b01 100644
--- a/intel/mm.h
+++ b/intel/mm.h
@@ -65,13 +65,6 @@ extern struct mem_block *mmAllocMem(struct mem_block *heap, int size,
extern int mmFreeMem(struct mem_block *b);
/**
- * Free block starts at offset
- * input: pointer to a heap, start offset
- * return: pointer to a block
- */
-extern struct mem_block *mmFindBlock(struct mem_block *heap, int start);
-
-/**
* destroy MM
*/
extern void mmDestroy(struct mem_block *mmInit);