removed getTextRange() overriding
authorsergey.vasiliev <sergey.vasiliev@jetbrains.com>
Wed, 12 Aug 2020 09:13:57 +0000 (11:13 +0200)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Wed, 12 Aug 2020 09:54:58 +0000 (09:54 +0000)
GitOrigin-RevId: 8026f31135a4965ae3df2ab33faaecd84ebf2cb8

platform/core-impl/src/com/intellij/psi/impl/PomTargetPsiElementImpl.java

index dad5a5be22da8650514bb9ecfb430cd51d9d2d95..9148473eaa581a7b0383e517ea8379f4ff875a58 100644 (file)
@@ -5,7 +5,6 @@ import com.intellij.ide.IconProvider;
 import com.intellij.ide.TypePresentationService;
 import com.intellij.lang.Language;
 import com.intellij.openapi.project.Project;
-import com.intellij.openapi.util.TextRange;
 import com.intellij.pom.*;
 import com.intellij.psi.PsiElement;
 import com.intellij.psi.PsiFile;
@@ -184,12 +183,4 @@ public class PomTargetPsiElementImpl extends RenameableFakePsiElement implements
     }
     return super.getLocationString();
   }
-
-  @Override
-  public @Nullable TextRange getTextRange() {
-    if (myTarget instanceof PsiTarget) {
-      return ((PsiTarget)myTarget).getNavigationElement().getTextRange();
-    }
-    return super.getTextRange();
-  }
 }