Minor, removed redundant argument

from ClassBodyCodegen.generateDeclaration
This commit is contained in:
Denis Zharkov
2014-11-21 11:42:06 +04:00
parent 37d476c388
commit ca27be87cc
2 changed files with 5 additions and 5 deletions
@@ -58,14 +58,14 @@ public abstract class ClassBodyCodegen extends MemberCodegen<JetClassOrObject> {
//generate nested classes first and only then generate class body. It necessary to access to nested CodegenContexts
for (JetDeclaration declaration : myClass.getDeclarations()) {
if (shouldProcessFirst(declaration)) {
generateDeclaration(propertyCodegen, declaration);
generateDeclaration(declaration);
}
}
}
for (JetDeclaration declaration : myClass.getDeclarations()) {
if (!shouldProcessFirst(declaration)) {
generateDeclaration(propertyCodegen, declaration);
generateDeclaration(declaration);
}
}
@@ -88,7 +88,7 @@ public abstract class ClassBodyCodegen extends MemberCodegen<JetClassOrObject> {
}
protected void generateDeclaration(PropertyCodegen propertyCodegen, JetDeclaration declaration) {
protected void generateDeclaration(JetDeclaration declaration) {
if (declaration instanceof JetProperty || declaration instanceof JetNamedFunction) {
genFunctionOrProperty(declaration);
}
@@ -1532,7 +1532,7 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
}
@Override
protected void generateDeclaration(PropertyCodegen propertyCodegen, JetDeclaration declaration) {
protected void generateDeclaration(JetDeclaration declaration) {
if (declaration instanceof JetEnumEntry) {
String name = declaration.getName();
assert name != null : "Enum entry has no name: " + declaration.getText();
@@ -1543,7 +1543,7 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
myEnumConstants.add((JetEnumEntry) declaration);
}
super.generateDeclaration(propertyCodegen, declaration);
super.generateDeclaration(declaration);
}
private final List<JetEnumEntry> myEnumConstants = new ArrayList<JetEnumEntry>();