From 7f95a9806a565b29d322c8df6e5901377b83a183 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 16 Dec 2014 18:13:49 +0100 Subject: [PATCH] api cleanup. --- jedi/api/__init__.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/jedi/api/__init__.py b/jedi/api/__init__.py index b5f08efd..a966c702 100644 --- a/jedi/api/__init__.py +++ b/jedi/api/__init__.py @@ -291,15 +291,6 @@ class Script(object): i = imports.get_importer(self._evaluator, names, module, level) return i.follow(self._evaluator) - - if not is_completion: - # goto_definition returns definitions of its statements if the - # cursor is on the assignee. By changing the start_pos of our - # "pseudo" statement, the Jedi evaluator can find the assignees. - - # TODO remove? - if False and user_stmt is not None: - eval_stmt.start_pos = user_stmt.end_pos scopes = self._evaluator.eval_statement(eval_stmt) return scopes