]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove unused variable in mod_http_cache
authorChristopher Rienzo <chris@rienzo.net>
Thu, 26 Jan 2012 18:01:52 +0000 (18:01 +0000)
committerChristopher Rienzo <chris@rienzo.net>
Thu, 26 Jan 2012 18:01:52 +0000 (18:01 +0000)
src/mod/applications/mod_http_cache/mod_http_cache.c

index 29cce6a4a2e4e7c428adee531747b9c79a696700..b93016a5e6008cf94d2bd1ad3067f2e2de46dc2d 100644 (file)
@@ -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;
 }