diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-04-02 12:06:53 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-04-02 12:06:53 +0100 |
| commit | e1903b4a69ce9cd299e0b07f386b84c4473874aa (patch) | |
| tree | f84a51ca53593f97f894d928cd436fc306f5ea79 /src/main/java/org | |
| parent | 40b4de2450c299209a18e3c504e5b7ac2be674f0 (diff) | |
Remove unused argument
Diffstat (limited to 'src/main/java/org')
| -rw-r--r-- | src/main/java/org/zwobble/couscous/frontends/java/JavaReader.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/zwobble/couscous/frontends/java/JavaReader.java b/src/main/java/org/zwobble/couscous/frontends/java/JavaReader.java index 41ee30d..c63cbb3 100644 --- a/src/main/java/org/zwobble/couscous/frontends/java/JavaReader.java +++ b/src/main/java/org/zwobble/couscous/frontends/java/JavaReader.java @@ -336,12 +336,12 @@ public class JavaReader { .ifPresent(field -> readField(body, scope, type, field)); tryCast(TypeDeclaration.class, declaration) - .ifPresent(typeDeclaration -> classes.add(readNestedTypeDeclaration(type, typeDeclaration))); + .ifPresent(typeDeclaration -> classes.add(readNestedTypeDeclaration(typeDeclaration))); } return body.build(); } - private TypeNode readNestedTypeDeclaration(ScalarType outerType, TypeDeclaration typeDeclaration) { + private TypeNode readNestedTypeDeclaration(TypeDeclaration typeDeclaration) { TypeNode typeNode = readTypeDeclaration(typeDeclaration); // TODO: can we remove duplication of scope creation with readTypeDeclaration()? Scope scope = topScope.enterClass(typeNode.getName()); |
