Drop unused interface method
There was the only usage and it's redundant. JetClass' implementation name is refined.
This commit is contained in:
-2
@@ -79,8 +79,6 @@ public abstract class DataClassMethodGenerator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void generateComponentFunctionsForDataClasses() {
|
private void generateComponentFunctionsForDataClasses() {
|
||||||
if (!declaration.hasPrimaryConstructor()) return;
|
|
||||||
|
|
||||||
ConstructorDescriptor constructor = classDescriptor.getUnsubstitutedPrimaryConstructor();
|
ConstructorDescriptor constructor = classDescriptor.getUnsubstitutedPrimaryConstructor();
|
||||||
assert constructor != null : "Data class should have primary constructor";
|
assert constructor != null : "Data class should have primary constructor";
|
||||||
|
|
||||||
|
|||||||
@@ -126,8 +126,7 @@ public class JetClass extends JetTypeParameterListOwnerStub<KotlinClassStub> imp
|
|||||||
return body.getAnonymousInitializers();
|
return body.getAnonymousInitializers();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
private boolean hasExplicitPrimaryConstructor() {
|
||||||
public boolean hasPrimaryConstructor() {
|
|
||||||
return getPrimaryConstructorParameterList() != null;
|
return getPrimaryConstructorParameterList() != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,9 +33,6 @@ public interface JetClassOrObject extends PsiNameIdentifierOwner, JetDeclaration
|
|||||||
@NotNull
|
@NotNull
|
||||||
List<JetClassInitializer> getAnonymousInitializers();
|
List<JetClassInitializer> getAnonymousInitializers();
|
||||||
|
|
||||||
// Objects always "have" a primary constructor
|
|
||||||
boolean hasPrimaryConstructor();
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
Name getNameAsName();
|
Name getNameAsName();
|
||||||
|
|||||||
@@ -122,11 +122,6 @@ public class JetObjectDeclaration extends JetNamedDeclarationStub<KotlinObjectSt
|
|||||||
return body.getAnonymousInitializers();
|
return body.getAnonymousInitializers();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean hasPrimaryConstructor() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JetClassBody getBody() {
|
public JetClassBody getBody() {
|
||||||
return getStubOrPsiChild(JetStubElementTypes.CLASS_BODY);
|
return getStubOrPsiChild(JetStubElementTypes.CLASS_BODY);
|
||||||
|
|||||||
Reference in New Issue
Block a user