From 59578966cff50087dab8c18a6beea320f1b917d6 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 3 Sep 2014 18:02:20 +0200 Subject: [PATCH] Remove code that is not used anymore from Script._goto --- jedi/api/__init__.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/jedi/api/__init__.py b/jedi/api/__init__.py index 6da2e4ec..c8fcf9d4 100644 --- a/jedi/api/__init__.py +++ b/jedi/api/__init__.py @@ -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=()):