Skip to content

Commit

Permalink
Remove duplicated code (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Dec 6, 2023
1 parent e179cc8 commit 8d34be9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions self_hosted/typecheck.jou
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,6 @@ def handle_signature(ft: FileTypes*, astsig: AstSignature*, self_type: Type*) ->
else:
sig.return_type = type_from_ast(ft, &astsig->return_type)

if astsig->return_type.is_void() or astsig->return_type.is_noreturn():
sig.return_type = NULL
else:
sig.return_type = type_from_ast(ft, &astsig->return_type)

# TODO: validate main() parameters
# TODO: test main() taking parameters
if self_type == NULL and strcmp(sig.name, "main") == 0 and sig.return_type != int_type:
Expand Down

0 comments on commit 8d34be9

Please sign in to comment.