rxgen: remove dead code hndle_param_tail 22/14322/2
authorMark Vitale <mvitale@sinenomine.net>
Tue, 25 Aug 2020 16:37:09 +0000 (12:37 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 28 Aug 2020 15:34:16 +0000 (11:34 -0400)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

src/rxgen/rpc_parse.c

index 668ce94..43510ea 100644 (file)
@@ -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)
 {