summaryrefslogtreecommitdiff
path: root/memory/unix/apr_pools.c
diff options
context:
space:
mode:
Diffstat (limited to 'memory/unix/apr_pools.c')
-rw-r--r--memory/unix/apr_pools.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/memory/unix/apr_pools.c b/memory/unix/apr_pools.c
index 27d0d528a..fbef277ad 100644
--- a/memory/unix/apr_pools.c
+++ b/memory/unix/apr_pools.c
@@ -2324,45 +2324,6 @@ APR_DECLARE(void) apr_pool_lock(apr_pool_t *pool, int flag)
#endif /* !APR_POOL_DEBUG */
-/* For APR internal use only (for now).
- * Detach the pool from its/any parent (i.e. un-manage).
- */
-apr_status_t apr__pool_unmanage(apr_pool_t *pool);
-apr_status_t apr__pool_unmanage(apr_pool_t *pool)
-{
- apr_pool_t *parent = pool->parent;
-
- if (!parent) {
- return APR_NOTFOUND;
- }
-
-#if APR_POOL_DEBUG
- if (pool->allocator && pool->allocator == parent->allocator) {
- return APR_EINVAL;
- }
- apr_thread_mutex_lock(parent->mutex);
-#else
- if (pool->allocator == parent->allocator) {
- return APR_EINVAL;
- }
- allocator_lock(parent->allocator);
-#endif
-
- /* Remove the pool from the parent's children */
- if ((*pool->ref = pool->sibling) != NULL) {
- pool->sibling->ref = pool->ref;
- }
- pool->parent = NULL;
-
-#if APR_POOL_DEBUG
- apr_thread_mutex_unlock(parent->mutex);
-#else
- allocator_unlock(parent->allocator);
-#endif
-
- return APR_SUCCESS;
-}
-
#ifdef NETWARE
void netware_pool_proc_cleanup ()
{