From 4ab536a85a5ddda52ae9882184fc616ffb553f7c Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 24 Feb 2026 16:39:16 +0100 Subject: [PATCH] Drop pointless code Modifies a local variable after it was stored in an out parameter, so this modification has no effect. --- src/parser.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/parser.cpp b/src/parser.cpp index 5ada6d298..a79e39a51 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1434,9 +1434,6 @@ gb_internal Token consume_comment(AstFile *f, isize *end_line_) { if (end_line_) *end_line_ = end_line; next_token0(f); - if (f->curr_token.pos.line > tok.pos.line || tok.kind == Token_EOF) { - end_line++; - } return tok; }