]> granicus.if.org Git - apache/commitdiff
mod_lua: Remove dead code left over from the old code cache.
authorBen Reser <breser@apache.org>
Mon, 30 Jun 2014 16:54:27 +0000 (16:54 +0000)
committerBen Reser <breser@apache.org>
Mon, 30 Jun 2014 16:54:27 +0000 (16:54 +0000)
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 <rhuijben{_at_}collab.net>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1606836 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/mod_lua.c
modules/lua/mod_lua.h

index 90f34cda3e82c6c4c187d4e98fb170fdccb36740..11cbd2b91013443ab6711b81f9b9bd23db1c8c7c 100644 (file)
@@ -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;
index 7fd115330b2b6cac7cc4039af2a56fd340343130..5b422ed54ac0d61d47c164a660134900d52dfe84 100644 (file)
@@ -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;