forked from VimPlug/jedi
Remove code that is not used anymore from Script._goto
This commit is contained in:
@@ -484,14 +484,6 @@ class Script(object):
|
|||||||
definitions = follow_inexistent_imports(defs)
|
definitions = follow_inexistent_imports(defs)
|
||||||
else:
|
else:
|
||||||
definitions = [lhs]
|
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
|
return definitions, search_name
|
||||||
|
|
||||||
def usages(self, additional_module_paths=()):
|
def usages(self, additional_module_paths=()):
|
||||||
|
|||||||
Reference in New Issue
Block a user