From 010c55debc2acbc7db813191b23d6c4ceb83db9b Mon Sep 17 00:00:00 2001 From: Andrey Vlasovskikh Date: Tue, 22 Aug 2017 22:31:24 +0300 Subject: [PATCH] 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. --- .../python/psi/stubs/PyFromImportStatementStub.java | 6 ++++++ .../python/psi/impl/PyFromImportStatementImpl.java | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/python/psi-api/src/com/jetbrains/python/psi/stubs/PyFromImportStatementStub.java b/python/psi-api/src/com/jetbrains/python/psi/stubs/PyFromImportStatementStub.java index 611061b6ec96..74240026826d 100644 --- a/python/psi-api/src/com/jetbrains/python/psi/stubs/PyFromImportStatementStub.java +++ b/python/psi-api/src/com/jetbrains/python/psi/stubs/PyFromImportStatementStub.java @@ -26,6 +26,12 @@ import org.jetbrains.annotations.Nullable; public interface PyFromImportStatementStub extends StubElement { @Nullable QualifiedName getImportSourceQName(); + + /** + * @deprecated Use stub-based {@link PyFromImportStatement#getStarImportElement()} instead. + */ + @Deprecated boolean isStarImport(); + int getRelativeLevel(); } diff --git a/python/src/com/jetbrains/python/psi/impl/PyFromImportStatementImpl.java b/python/src/com/jetbrains/python/psi/impl/PyFromImportStatementImpl.java index 527a53d1efe1..629b457e792f 100644 --- a/python/src/com/jetbrains/python/psi/impl/PyFromImportStatementImpl.java +++ b/python/src/com/jetbrains/python/psi/impl/PyFromImportStatementImpl.java @@ -64,10 +64,6 @@ public class PyFromImportStatementImpl extends PyBaseElementImpl