Don't use redundant isStarImport in from import statement stub

We now store stubs for star import elements so having this flag in
the stub for PyFromImportStatement became redundant.
This commit is contained in:
Andrey Vlasovskikh
2017-08-22 22:33:35 +03:00
parent 62910585fe
commit 010c55debc
2 changed files with 6 additions and 4 deletions
@@ -26,6 +26,12 @@ import org.jetbrains.annotations.Nullable;
public interface PyFromImportStatementStub extends StubElement<PyFromImportStatement> {
@Nullable
QualifiedName getImportSourceQName();
/**
* @deprecated Use stub-based {@link PyFromImportStatement#getStarImportElement()} instead.
*/
@Deprecated
boolean isStarImport();
int getRelativeLevel();
}
@@ -64,10 +64,6 @@ public class PyFromImportStatementImpl extends PyBaseElementImpl<PyFromImportSta
}
public boolean isStarImport() {
final PyFromImportStatementStub stub = getStub();
if (stub != null) {
return stub.isStarImport();
}
return getStarImportElement() != null;
}