purge mempool code

We aren't using this anywhere, so drop it entirely.

BUG=chromium:878440
TEST=build works

Change-Id: I77896661e3836e945bfae90afdf52c157b457351
Reviewed-on: https://chromium-review.googlesource.com/1194719
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
diff --git a/include/linux/mempool.h b/include/linux/mempool.h
deleted file mode 100644
index ee87a3d..0000000
--- a/include/linux/mempool.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright (C) 2010 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by the GPL v2 license that can
- * be found in the LICENSE file.
- * 
- * Parts of this file are derived from the Linux kernel from the file with
- * the same name and path under include/.
- */
-#ifndef VERITY_INCLUDE_LINUX_MEMPOOL_H_
-#define VERITY_INCLUDE_LINUX_MEMPOOL_H_
-#include <sys/types.h>
-
-typedef struct {
-	int min_nr;
-	int out;
-} mempool_t;
-
-mempool_t *mempool_create_page_pool(int min_nr, int order);
-void mempool_destroy(mempool_t *m);
-void *mempool_alloc(mempool_t *m, int flags);
-void mempool_free(void *e, mempool_t *m);
-
-#endif  /* VERITY_INCLUDE_LINUX_MEMPOOL_H_ */
diff --git a/kernel/mempool.c b/kernel/mempool.c
deleted file mode 100644
index 26c4922..0000000
--- a/kernel/mempool.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Copyright (C) 2010 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by the GPL v2 license that can
- * be found in the LICENSE file.
- * 
- * These files provide equivalent implementations for kernel calls for
- * compatibility with files under SRC/include.
- */
-
-#include <asm/page.h>
-#include <linux/mempool.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-mempool_t *mempool_create_page_pool(int min_nr, int order)
-{
-	mempool_t *m = (mempool_t *) calloc(1, sizeof(mempool_t));
-	if (!m) return m;
-	m->min_nr = min_nr;
-	return m;
-}
-
-void mempool_destroy(mempool_t *m) 
-{
-	if (!m) return;
-	if (m->out > 0) {
-		fprintf(stderr, "ALL ELEMENTS NOT RETURNED TO MEMPOOL\n");
-	}
-	free(m);
-}
-
-void *mempool_alloc(mempool_t *m, int flags) 
-{
-	void *memptr;
-	m->out++;
-
-	if (posix_memalign(&memptr, sizeof(struct page), sizeof(struct page)))
-	    return NULL;
-	return memptr;
-}
-
-void mempool_free(void *e, mempool_t *m) 
-{
-	m->out--;
-	free(e);
-}