From 2c11ffde1d6034fe33712509b7b6e714a423b3c7 Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Thu, 13 Feb 2014 22:31:37 +0100 Subject: [PATCH] Revert https://github.com/JetBrains/intellij-community/pull/149 take 2. --- python/src/com/jetbrains/python/psi/PyUtil.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/python/src/com/jetbrains/python/psi/PyUtil.java b/python/src/com/jetbrains/python/psi/PyUtil.java index 8c0dd9f9f1a6..50cca7aa50a0 100644 --- a/python/src/com/jetbrains/python/psi/PyUtil.java +++ b/python/src/com/jetbrains/python/psi/PyUtil.java @@ -952,17 +952,6 @@ public class PyUtil { while (value instanceof PyParenthesizedExpression) { value = ((PyParenthesizedExpression)value).getContainedExpression(); } - if (value instanceof PyReferenceExpression) { - PyReferenceExpression refExpr = (PyReferenceExpression)value; - PsiElement deref = refExpr.getReference().resolve(); - if (deref instanceof PyTargetExpression) { - PyTargetExpression te = (PyTargetExpression)deref; - PyExpression assignedValue = te.findAssignedValue(); - if (assignedValue instanceof PySequenceExpression) { - value = assignedValue; - } - } - } if (value instanceof PySequenceExpression) { final PyExpression[] elements = ((PySequenceExpression)value).getElements(); List result = new ArrayList(elements.length);