Remove code that is not used anymore from Script._goto

This commit is contained in:
Dave Halter
2014-09-03 18:02:20 +02:00
parent e2ca11435c
commit 59578966cf

View File

@@ -484,14 +484,6 @@ class Script(object):
definitions = follow_inexistent_imports(defs)
else:
definitions = [lhs]
if isinstance(user_stmt, pr.Statement):
c = user_stmt.expression_list()
if c and not isinstance(c[0], (str, unicode)) \
and c[0].start_pos > self._pos \
and not re.search(r'\.\w+$', goto_path):
# The cursor must be after the start, otherwise the
# statement is just an assignee.
definitions = [user_stmt]
return definitions, search_name
def usages(self, additional_module_paths=()):