From: Mark Vitale Date: Tue, 25 Aug 2020 16:37:09 +0000 (-0400) Subject: rxgen: remove dead code hndle_param_tail X-Git-Tag: openafs-devel-1_9_0~14 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=21cd26cb0d0a37d9412c0285a3c73c693222fd8a rxgen: remove dead code hndle_param_tail Since the original IBM code import, hndle_param_tail has been dead code. It was later ifdef'd out in commit 8f2df21ffe59 'pull-prototypes-to-head-20020821' Remove the dead code from the tree. No functional change is incurred by this commit. Change-Id: I29128eecc93a5871f5bb9369c3983baf5b537beb Reviewed-on: https://gerrit.openafs.org/14322 Tested-by: BuildBot Reviewed-by: Cheyenne Wills Reviewed-by: Michael Meffie Reviewed-by: Benjamin Kaduk --- diff --git a/src/rxgen/rpc_parse.c b/src/rxgen/rpc_parse.c index 668ce94..43510ea 100644 --- a/src/rxgen/rpc_parse.c +++ b/src/rxgen/rpc_parse.c @@ -112,10 +112,6 @@ static void get1_param_type(definition * defp, declaration * dec, char **param_type); static void get_param_type(definition * defp, declaration * dec, char **param_type, char **typename); -#ifdef undef -static void hndle_param_tail(definition * defp, declaration * dec, - token * tokp, char *typename); -#endif static void cs_Proc_CodeGeneration(definition * defp, int split_flag, char *procheader); static void cs_ProcName_setup(definition * defp, char *procheader, @@ -1020,32 +1016,6 @@ get_param_type(definition * defp, declaration * dec, char **param_type, } -#ifdef undef -static void -hndle_param_tail(definition * defp, declaration * dec, token * tokp, - char *typename) -{ - char *amp; - - if (dec->rel == REL_POINTER) - Proc_list->pl.param_flag |= INDIRECT_PARAM; - else - Proc_list->pl.param_flag &= ~INDIRECT_PARAM; - amp = ""; - if (!(Proc_list->pl.param_flag & INDIRECT_PARAM)) - amp = "&"; - - sprintf(Proc_list->code, "xdr_%s(&z_xdrs, %s%s)", typename, amp, - Proc_list->pl.param_name); - sprintf(Proc_list->scode, "xdr_%s(z_xdrs, &%s)", typename, - Proc_list->pl.param_name); - scan2(TOK_COMMA, TOK_RPAREN, tokp); - if (tokp->kind == TOK_COMMA) - peek(tokp); -} -#endif - - static void cs_Proc_CodeGeneration(definition * defp, int split_flag, char *procheader) {