From edd7ce9e08b3c0240dd909d78b956ffb987f9fe4 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Mon, 4 Oct 2021 18:16:59 +0300 Subject: [PATCH] Removes possibly unused `builtin_call` (#11264) --- mypyc/irbuild/ll_builder.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/mypyc/irbuild/ll_builder.py b/mypyc/irbuild/ll_builder.py index b6cf990d025d..d7bf1d0b07b3 100644 --- a/mypyc/irbuild/ll_builder.py +++ b/mypyc/irbuild/ll_builder.py @@ -43,7 +43,7 @@ use_method_vectorcall ) from mypyc.primitives.registry import ( - method_call_ops, CFunctionDescription, function_ops, + method_call_ops, CFunctionDescription, binary_ops, unary_ops, ERR_NEG_INT ) from mypyc.primitives.bytes_ops import bytes_compare @@ -1186,15 +1186,6 @@ def new_list_op(self, values: List[Value], line: int) -> Value: def new_set_op(self, values: List[Value], line: int) -> Value: return self.call_c(new_set_op, values, line) - def builtin_call(self, - args: List[Value], - fn_op: str, - line: int) -> Value: - call_c_ops_candidates = function_ops.get(fn_op, []) - target = self.matching_call_c(call_c_ops_candidates, args, line) - assert target, 'Unsupported builtin function: %s' % fn_op - return target - def shortcircuit_helper(self, op: str, expr_type: RType, left: Callable[[], Value],