From 31ee062ad12adcf6dae6716cb566fcbcde9f6959 Mon Sep 17 00:00:00 2001 From: geno Date: Thu, 18 Jul 2024 12:16:40 +0200 Subject: codegen while implemented, test added --- src/ast/Python3VisitorImpl.java | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/ast/Python3VisitorImpl.java') diff --git a/src/ast/Python3VisitorImpl.java b/src/ast/Python3VisitorImpl.java index e6728d5..7e8881f 100644 --- a/src/ast/Python3VisitorImpl.java +++ b/src/ast/Python3VisitorImpl.java @@ -504,7 +504,6 @@ public class Python3VisitorImpl extends Python3ParserBaseVisitor { } private void optimizeWithThird(BlockNode block, int lineStart, int lineStop, int index) { - int counter = 0; ArrayList stms = block.getChilds(); for (var e : stms) { if (e instanceof SimpleStmtsNode) { @@ -543,7 +542,6 @@ public class Python3VisitorImpl extends Python3ParserBaseVisitor { rewriter.replace(firstToken, lastToken, newVar); } } - counter++; } } } -- cgit v1.2.3-71-g8e6c