Skip to content

Removes possibly unused builtin_call #11264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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