Skip to content

Commit

Permalink
Removes possibly unused builtin_call (#11264)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Oct 4, 2021
1 parent 3ad69a0 commit edd7ce9
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions mypyc/irbuild/ll_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit edd7ce9

Please sign in to comment.