summaryrefslogtreecommitdiff
path: root/libs/utils/Pool.cpp
diff options
context:
space:
mode:
author Jeff Brown <jeffbrown@google.com> 2011-07-20 15:19:50 -0700
committer Jeff Brown <jeffbrown@google.com> 2011-07-20 15:19:50 -0700
commitac386073df2514b79a2ca169f4a89f129733002f (patch)
treea3ac8faca1a1f1dc118403b019bd05f652de52a8 /libs/utils/Pool.cpp
parentcf4cfc6fc88f204e2e496e37337f7e70809bbf6f (diff)
Remove unimplemented memory pool.
dlmalloc does such a great job that we don't need a pool anyways. Change-Id: I105b28c4a5c491543959190c7c0a9de75a5b8052
Diffstat (limited to 'libs/utils/Pool.cpp')
-rw-r--r--libs/utils/Pool.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/libs/utils/Pool.cpp b/libs/utils/Pool.cpp
deleted file mode 100644
index 8f18cb913ea4..000000000000
--- a/libs/utils/Pool.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-//
-// Copyright 2010 The Android Open Source Project
-//
-// A simple memory pool.
-//
-#define LOG_TAG "Pool"
-
-//#define LOG_NDEBUG 0
-
-#include <cutils/log.h>
-#include <utils/Pool.h>
-
-#include <stdlib.h>
-
-namespace android {
-
-// TODO Provide a real implementation of a pool. This is just a stub for initial development.
-
-PoolImpl::PoolImpl(size_t objSize) :
- mObjSize(objSize) {
-}
-
-PoolImpl::~PoolImpl() {
-}
-
-void* PoolImpl::allocImpl() {
- void* ptr = malloc(mObjSize);
- LOG_ALWAYS_FATAL_IF(ptr == NULL, "Cannot allocate new pool object.");
- return ptr;
-}
-
-void PoolImpl::freeImpl(void* obj) {
- LOG_ALWAYS_FATAL_IF(obj == NULL, "Caller attempted to free NULL pool object.");
- return free(obj);
-}
-
-} // namespace android