From ccb1c5181a785ebdf5e7ce53266f6a89981b90e4 Mon Sep 17 00:00:00 2001 From: Ben Reser Date: Mon, 30 Jun 2014 16:54:27 +0000 Subject: [PATCH] mod_lua: Remove dead code left over from the old code cache. The code that used this was commented out in r721594, then removed entirely in r728497, and finally a commit was made intending to remove the last traces of the code cache in r1200513, but this initialization lived on anyway. * modules/lua/mod_lua.c (create_server_config): Remove unused empty hash and rwlock for hash. * modules/lua/mod_lua.h (ap_lua_server_cfg): Remove unneeded hash and rwlock entries. Found by: Bert Huijben git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1606836 13f79535-47bb-0310-9956-ffa450edef68 --- modules/lua/mod_lua.c | 2 -- modules/lua/mod_lua.h | 3 --- 2 files changed, 5 deletions(-) diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index 90f34cda3e..11cbd2b910 100644 --- a/modules/lua/mod_lua.c +++ b/modules/lua/mod_lua.c @@ -1960,8 +1960,6 @@ static void *create_server_config(apr_pool_t *p, server_rec *s) { ap_lua_server_cfg *cfg = apr_pcalloc(p, sizeof(ap_lua_server_cfg)); - cfg->vm_reslists = apr_hash_make(p); - apr_thread_rwlock_create(&cfg->vm_reslists_lock, p); cfg->root_path = NULL; return cfg; diff --git a/modules/lua/mod_lua.h b/modules/lua/mod_lua.h index 7fd115330b..5b422ed54a 100644 --- a/modules/lua/mod_lua.h +++ b/modules/lua/mod_lua.h @@ -135,9 +135,6 @@ typedef struct typedef struct { - apr_hash_t *vm_reslists; - apr_thread_rwlock_t *vm_reslists_lock; - /* value of the LuaRoot directive */ const char *root_path; } ap_lua_server_cfg; -- 2.50.1