From: Alan T. DeKok Date: Tue, 24 Oct 2017 19:26:04 +0000 (-0400) Subject: remove more unused functions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aee0436362327014973ac440eea73ef9719bf156;p=thirdparty%2Ffreeradius-server.git remove more unused functions --- diff --git a/src/include/modules.h b/src/include/modules.h index aedc993185f..e4e70c33a95 100644 --- a/src/include/modules.h +++ b/src/include/modules.h @@ -189,15 +189,10 @@ int module_instance_read_only(TALLOC_CTX *ctx, char const *name); */ rlm_rcode_t process_authorize(int type, REQUEST *request); rlm_rcode_t process_authenticate(int type, REQUEST *request); -rlm_rcode_t process_preacct(REQUEST *request); -rlm_rcode_t process_accounting(int type, REQUEST *request); -rlm_rcode_t process_pre_proxy(int type, REQUEST *request); rlm_rcode_t process_post_proxy(int type, REQUEST *request); rlm_rcode_t process_post_auth(int type, REQUEST *request); #ifdef WITH_COA -rlm_rcode_t process_recv_coa(int type, REQUEST *request); -rlm_rcode_t process_send_coa(int type, REQUEST *request); # define MODULE_NULL_COA_FUNCS ,NULL,NULL #else # define MODULE_NULL_COA_FUNCS diff --git a/src/main/virtual_servers.c b/src/main/virtual_servers.c index 463e584922b..583b195c0b4 100644 --- a/src/main/virtual_servers.c +++ b/src/main/virtual_servers.c @@ -217,35 +217,7 @@ rlm_rcode_t process_authenticate(int auth_type, REQUEST *request) return module_method_call(MOD_AUTHENTICATE, auth_type, request); } -#ifdef WITH_ACCOUNTING -/* - * Do pre-accounting for ALL configured sessions - */ -rlm_rcode_t process_preacct(REQUEST *request) -{ - return module_method_call(MOD_PREACCT, 0, request); -} - -/* - * Do accounting for ALL configured sessions - */ -rlm_rcode_t process_accounting(int acct_type, REQUEST *request) -{ - return module_method_call(MOD_ACCOUNTING, acct_type, request); -} -#endif - #ifdef WITH_PROXY -/* - * Do pre-proxying for ALL configured sessions - */ -rlm_rcode_t process_pre_proxy(int type, REQUEST *request) -{ - rad_assert(request->proxy != NULL); - - return module_method_call(MOD_PRE_PROXY, type, request); -} - /* * Do post-proxying for ALL configured sessions */ @@ -265,17 +237,6 @@ rlm_rcode_t process_post_auth(int postauth_type, REQUEST *request) return module_method_call(MOD_POST_AUTH, postauth_type, request); } -#ifdef WITH_COA -rlm_rcode_t process_recv_coa(int recv_coa_type, REQUEST *request) -{ - return module_method_call(MOD_RECV_COA, recv_coa_type, request); -} - -rlm_rcode_t process_send_coa(int send_coa_type, REQUEST *request) -{ - return module_method_call(MOD_SEND_COA, send_coa_type, request); -} -#endif /** Define a values for Auth-Type attributes by the sections present in a virtual-server *