Skip to content

Commit 09af214

Browse files
committed
Remove unused field
1 parent 8fddcaf commit 09af214

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/ArgListCompiler.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,23 @@
5757
import org.antlr.v4.runtime.ParserRuleContext;
5858

5959
public class ArgListCompiler<T> extends Python3BaseVisitor<T> {
60-
private boolean arglist, keywordlist;
60+
private boolean arglist;
6161
public final List<String> names;
6262
public final List<String> fpnames;
6363
public final List<ParserRuleContext> init_code;
6464
private final ParserErrorCallback errors;
6565

6666
public ArgListCompiler(ParserErrorCallback errors) {
6767
this.errors = errors;
68-
arglist = keywordlist = false;
68+
arglist = false;
6969
// defaults = null;
7070
names = new ArrayList<>();
7171
fpnames = new ArrayList<>();
7272
init_code = new ArrayList<>();
7373
}
7474

7575
public void reset() {
76-
arglist = keywordlist = false;
76+
arglist = false;
7777
names.clear();
7878
init_code.clear();
7979
}
@@ -110,7 +110,6 @@ public T visitVsplatparameter(VsplatparameterContext ctx) {
110110

111111
@Override
112112
public T visitVkwargsparameter(VkwargsparameterContext ctx) {
113-
keywordlist = true;
114113
if (ctx.vfpdef() != null) {
115114
addName(ctx.vfpdef().NAME().getText());
116115
} else {
@@ -147,7 +146,6 @@ public T visitSplatparameter(SplatparameterContext ctx) {
147146

148147
@Override
149148
public T visitKwargsparameter(KwargsparameterContext ctx) {
150-
keywordlist = true;
151149
if (ctx.tfpdef() != null) {
152150
addName(ctx.tfpdef().NAME().getText());
153151
} else {

0 commit comments

Comments
 (0)