diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-12 14:05:22 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-12 14:05:22 -0400 |
| commit | 3cd3b20f58e9d2c6463d503be09e5d4cfaadee6c (patch) | |
| tree | 9b7120a4969a38793ecff3aab549b463c7dcf822 /src/compile/functions.c | |
| parent | bd190ac0a84eefa3174c04ce1fe2059aed6f2d1b (diff) | |
Code cleanup and fixing minor issues
Diffstat (limited to 'src/compile/functions.c')
| -rw-r--r-- | src/compile/functions.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/compile/functions.c b/src/compile/functions.c index e1b9c89a..757df073 100644 --- a/src/compile/functions.c +++ b/src/compile/functions.c @@ -787,13 +787,6 @@ Text_t compile_function(env_t *env, Text_t name_code, ast_t *ast, Text_t *static Text_t qualified_name = Text$from_str(function_name); if (env->namespace && env->namespace->parent && env->namespace->name) qualified_name = Texts(env->namespace->name, ".", qualified_name); - Text_t text = Texts("func ", qualified_name, "("); - for (arg_ast_t *arg = args; arg; arg = arg->next) { - text = Texts(text, type_to_text(get_arg_ast_type(env, arg))); - if (arg->next) text = Texts(text, ", "); - } - if (ret_t && ret_t->tag != VoidType) text = Texts(text, "->", type_to_text(ret_t)); - text = Texts(text, ")"); return definition; } |
