From 21508a8c7982e40a5f8b94d58310cf5d1033279d Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 30 Jul 2019 00:38:42 +0200 Subject: [PATCH] Remove a bit of code that i sprobably unused --- jedi/evaluate/context/instance.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/jedi/evaluate/context/instance.py b/jedi/evaluate/context/instance.py index 5a55bd9c..22b8c977 100644 --- a/jedi/evaluate/context/instance.py +++ b/jedi/evaluate/context/instance.py @@ -13,7 +13,7 @@ from jedi.evaluate.lazy_context import LazyKnownContext, LazyKnownContexts from jedi.evaluate.cache import evaluator_method_cache from jedi.evaluate.arguments import AnonymousArguments, \ ValuesArguments, TreeArgumentsWrapper -from jedi.evaluate.context.function import FunctionExecutionContext, \ +from jedi.evaluate.context.function import \ FunctionContext, FunctionMixin, OverloadedFunctionContext from jedi.evaluate.context.klass import ClassContext, apply_py__get__, \ ClassFilter @@ -390,15 +390,6 @@ class BoundMethod(FunctionMixin, ContextWrapper): def get_function_execution(self, arguments=None): arguments = self._get_arguments(arguments) - - if isinstance(self._wrapped_context, compiled.CompiledObject): - # This is kind of weird, because it's coming from a compiled object - # and we're not sure if we want that in the future. - # TODO remove?! - return FunctionExecutionContext( - self.evaluator, self.parent_context, self, arguments - ) - return super(BoundMethod, self).get_function_execution(arguments) def py__call__(self, arguments):