From 7788f3e9c42c7e97210412e3aebdfc0033347d42 Mon Sep 17 00:00:00 2001 From: Christopher Rienzo Date: Thu, 26 Jan 2012 18:01:52 +0000 Subject: [PATCH] remove unused variable in mod_http_cache --- .../applications/mod_http_cache/mod_http_cache.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/mod/applications/mod_http_cache/mod_http_cache.c b/src/mod/applications/mod_http_cache/mod_http_cache.c index 29cce6a4a2..b93016a5e6 100644 --- a/src/mod/applications/mod_http_cache/mod_http_cache.c +++ b/src/mod/applications/mod_http_cache/mod_http_cache.c @@ -798,8 +798,6 @@ static int isUrl(const char *filename) SWITCH_STANDARD_API(http_cache_prefetch) { switch_status_t status = SWITCH_STATUS_SUCCESS; - switch_memory_pool_t *lpool = NULL; - switch_memory_pool_t *pool = NULL; char *url; if (!isUrl(cmd)) { @@ -807,13 +805,6 @@ SWITCH_STANDARD_API(http_cache_prefetch) return SWITCH_STATUS_SUCCESS; } - if (session) { - pool = switch_core_session_get_pool(session); - } else { - switch_core_new_memory_pool(&lpool); - pool = lpool; - } - /* send to thread pool */ url = strdup(cmd); if (switch_queue_trypush(gcache.prefetch_queue, url) != SWITCH_STATUS_SUCCESS) { @@ -824,10 +815,6 @@ SWITCH_STANDARD_API(http_cache_prefetch) stream->write_function(stream, "+OK\n"); } - if (lpool) { - switch_core_destroy_memory_pool(&lpool); - } - return status; }