Remove argument summary from =head2 in POD

Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/e2626d97
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/e2626d97
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/e2626d97

Branch: refs/heads/master
Commit: e2626d979b25c9a8f4bb8af9d48f104cdae99aeb
Parents: 5e7c5ce
Author: Nick Wellnhofer <wellnho...@aevum.de>
Authored: Sat Dec 12 15:37:40 2015 +0100
Committer: Nick Wellnhofer <wellnho...@aevum.de>
Committed: Sat Dec 12 15:54:18 2015 +0100

----------------------------------------------------------------------
 compiler/src/CFCPerlPod.c | 20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/e2626d97/compiler/src/CFCPerlPod.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCPerlPod.c b/compiler/src/CFCPerlPod.c
index 5d1ecc4..7388cea 100644
--- a/compiler/src/CFCPerlPod.c
+++ b/compiler/src/CFCPerlPod.c
@@ -322,25 +322,7 @@ CFCPerlPod_gen_subroutine_pod(CFCFunction *func,
         CFCUtil_die("%s#%s is not public", class_name, alias);
     }
 
-    CFCParamList *param_list = CFCFunction_get_param_list(func);
-    int num_vars = (int)CFCParamList_num_vars(param_list);
-    char *pod = CFCUtil_sprintf("=head2 %s", alias);
-
-    // Build string summarizing arguments to use in header.
-    if (num_vars > 2 || (is_constructor && num_vars > 1)) {
-        pod = CFCUtil_cat(pod, "( I<[labeled params]> )\n\n", NULL);
-    }
-    else if (num_vars == 2) {
-        // Kill self param.
-        const char *name_list = CFCParamList_name_list(param_list);
-        const char *after_comma = strchr(name_list, ',') + 1;
-        while (isspace(*after_comma)) { after_comma++; }
-        pod = CFCUtil_cat(pod, "(", after_comma, ")\n\n", NULL);
-    }
-    else {
-        // num_args == 1, leave off 'self'.
-        pod = CFCUtil_cat(pod, "()\n\n", NULL);
-    }
+    char *pod = CFCUtil_sprintf("=head2 %s\n\n", alias);
 
     // Add code sample.
     if (!code_sample) {

Reply via email to