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>
main
Emil Velikov 2015-03-31 21:11:03 +01:00
parent 8e76f63cc4
commit 1756d3d64b
2 changed files with 0 additions and 19 deletions

View File

@ -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 */

View File

@ -64,13 +64,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
*/