summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/parse.c b/parse.c
index bcadbe8..14e342d 100644
--- a/parse.c
+++ b/parse.c
@@ -826,17 +826,6 @@ static bool parse_fn_expr(Parser *p, FnExpr *f) {
} else {
if (!parse_decl_list(p, &f->params, DECL_END_RPAREN_COMMA))
return false;
- Declaration *new_params = NULL;
- arr_foreach(f->params, Declaration, param) {
- /* whenever there's (x, y: int), turn it into (x: int, y: int) */
- arr_foreach(param->idents, Identifier, ident) {
- Declaration *new_param = parser_arr_add(p, &new_params);
- *new_param = *param;
- new_param->idents = NULL;
- *(Identifier *)parser_arr_add(p, &new_param->idents) = *ident;
- }
- }
- f->params = new_params;
arr_foreach(f->params, Declaration, param)
param->flags |= DECL_IS_PARAM;
}