From e451f92748b1039f6280009c7b5fbfbeab7b6d99 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Fri, 7 Feb 2014 16:15:20 +0000 Subject: [PATCH] follow-up to r1096569: remove unnecessary total_modules calculation git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1565711 13f79535-47bb-0310-9956-ffa450edef68 --- modules/generators/mod_cgid.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index 71e2b32eb1..ee1f243d4b 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -87,7 +87,6 @@ static APR_OPTIONAL_FN_TYPE(ap_ssi_get_tag_and_value) *cgid_pfn_gtv; static APR_OPTIONAL_FN_TYPE(ap_ssi_parse_string) *cgid_pfn_ps; static apr_pool_t *pcgi = NULL; -static int total_modules = 0; static pid_t daemon_pid; static int daemon_should_exit = 0; static server_rec *root_server = NULL; @@ -900,7 +899,6 @@ static int cgid_init(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, { apr_proc_t *procnew = NULL; const char *userdata_key = "cgid_init"; - module **m; int ret = OK; void *data; @@ -922,9 +920,6 @@ static int cgid_init(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, if (ap_state_query(AP_SQ_MAIN_STATE) != AP_SQ_MS_CREATE_PRE_CONFIG) { char *tmp_sockname; - total_modules = 0; - for (m = ap_preloaded_modules; *m != NULL; m++) - total_modules++; parent_pid = getpid(); tmp_sockname = ap_runtime_dir_relative(p, sockname); -- 2.40.0