From 628d656207f1ecd8ef17f75167ea00568dcdbdaf Mon Sep 17 00:00:00 2001 From: tocariimaa Date: Sun, 12 Jan 2025 23:50:41 -0300 Subject: [PATCH] lexer: remove this useless code --- compiler/lex.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/compiler/lex.c b/compiler/lex.c index b3f041f..fe7e669 100644 --- a/compiler/lex.c +++ b/compiler/lex.c @@ -524,13 +524,6 @@ void lex_backup(LexState *ls, LexToken token) { arrput(ls->backlist, token); - i64 col = ls->cur_loc.column - token.len; - if (col < 1) { - if (ls->cur_loc.line > 1) - --ls->cur_loc.line; - } else { - ls->cur_loc.column = col; - } } /* Checks if `t` token type is equal to `exp_tok`. This does not eat any token. */