From 4098bfd00ea9bcc38d19ddc706316ad2a2496aac Mon Sep 17 00:00:00 2001 From: Andrey Vlasovskikh Date: Thu, 4 Sep 2014 17:18:26 +0400 Subject: [PATCH] Don't include class name into the location string for a function For other languages we use the Class.Function notation. The class name can be included into the function name by a caller if needed. --- .../com/jetbrains/python/psi/impl/PyFunctionImpl.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java b/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java index 9448fc2029ef..2c1842f3337f 100644 --- a/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java +++ b/python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java @@ -269,16 +269,6 @@ public class PyFunctionImpl extends PyBaseElementImpl implements public String getPresentableText() { return notNullize(getName(), PyNames.UNNAMED_ELEMENT) + getParameterList().getPresentableText(true); } - - @Nullable - @Override - public String getLocationString() { - final PyClass containingClass = getContainingClass(); - if (containingClass != null) { - return "(" + containingClass.getName() + " in " + getPackageForFile(getContainingFile()) + ")"; - } - return super.getLocationString(); - } }; }