diff mbox

[libdrm,12/24] intel: remove unused mmFindBlock

Message ID 1427904935-14387-13-git-send-email-emil.l.velikov@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Emil Velikov April 1, 2015, 4:15 p.m. UTC
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>
---
 intel/mm.c | 12 ------------
 intel/mm.h |  7 -------
 2 files changed, 19 deletions(-)
diff mbox

Patch

diff --git a/intel/mm.c b/intel/mm.c
index 1069745..10b74bf 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 a6ee102..c7dd8b0 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);