From 9b8ee499e9782e31f799660b783b46c99d14ec0d Mon Sep 17 00:00:00 2001 From: fitermay Date: Mon, 10 Jul 2017 23:30:57 -0400 Subject: [PATCH] PY-24987/PY-22496: Remove now unused PyInstanceAttributeIndex --- python/src/META-INF/python-core-common.xml | 1 - .../stubs/PyTargetExpressionElementType.java | 8 ---- .../psi/stubs/PyInstanceAttributeIndex.java | 48 ------------------- 3 files changed, 57 deletions(-) delete mode 100644 python/src/com/jetbrains/python/psi/stubs/PyInstanceAttributeIndex.java diff --git a/python/src/META-INF/python-core-common.xml b/python/src/META-INF/python-core-common.xml index dc4f5dfd8659..09b7d406e4bd 100644 --- a/python/src/META-INF/python-core-common.xml +++ b/python/src/META-INF/python-core-common.xml @@ -120,7 +120,6 @@ - diff --git a/python/src/com/jetbrains/python/psi/impl/stubs/PyTargetExpressionElementType.java b/python/src/com/jetbrains/python/psi/impl/stubs/PyTargetExpressionElementType.java index 74320424f108..e31678699ee7 100644 --- a/python/src/com/jetbrains/python/psi/impl/stubs/PyTargetExpressionElementType.java +++ b/python/src/com/jetbrains/python/psi/impl/stubs/PyTargetExpressionElementType.java @@ -168,17 +168,9 @@ public class PyTargetExpressionElementType extends PyStubElementType { - public static final StubIndexKey KEY = StubIndexKey.createIndexKey("Py.instanceAttribute.name"); - - @Override - public int getVersion() { - return super.getVersion() + 1; - } - - @NotNull - @Override - public StubIndexKey getKey() { - return KEY; - } - - public static Collection find(String name, Project project, GlobalSearchScope scope) { - return StubIndex.getElements(KEY, name, project, scope, PyTargetExpression.class); - } -}