diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 14:32:45 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 14:32:45 -0400 |
| commit | 85e7fc5d01225c6f8565f19203cfaf6cde7822c1 (patch) | |
| tree | 239d048be779dd979855dc515c3f36abb4bdd3c7 /src | |
| parent | 36832052a0e252e3fd8537e6a4fda8a31d653521 (diff) | |
Remove dead code
Diffstat (limited to 'src')
| -rw-r--r-- | src/compile.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/compile.c b/src/compile.c index 424568b9..a2378202 100644 --- a/src/compile.c +++ b/src/compile.c @@ -3985,7 +3985,6 @@ CORD compile_cli_arg_call(env_t *env, CORD fn_name, type_t *fn_type) } - int num_args = 0; for (arg_t *arg = fn_info->args; arg; arg = arg->next) { type_t *opt_type = arg->type->tag == OptionalType ? arg->type : Type(OptionalType, .type=arg->type); code = CORD_all(code, compile_declaration(opt_type, CORD_all("_$", arg->name))); @@ -3998,7 +3997,6 @@ CORD compile_cli_arg_call(env_t *env, CORD fn_name, type_t *fn_type) code = CORD_all(code, " = ", compile_none(arg->type)); } code = CORD_all(code, ";\n"); - num_args += 1; } code = CORD_all(code, "tomo_parse_args(argc, argv, ", usage_code, ", ", help_code); |
