Skip to content

Commit 6345fcd

Browse files
committed
Remove unused is_helper_call from allocation_pass
1 parent 6b41f1f commit 6345fcd

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pythonbpf/allocation_pass.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,6 @@ def __iter__(self):
2222
yield self.metadata
2323

2424

25-
def _is_helper_call(call_node):
26-
"""Check if a call node is a BPF helper function call."""
27-
if isinstance(call_node.func, ast.Name):
28-
# Exclude print from requiring temps (handles f-strings differently)
29-
func_name = call_node.func.id
30-
return HelperHandlerRegistry.has_handler(func_name) and func_name != "print"
31-
32-
elif isinstance(call_node.func, ast.Attribute):
33-
return HelperHandlerRegistry.has_handler(call_node.func.attr)
34-
35-
return False
36-
37-
3825
def handle_assign_allocation(builder, stmt, local_sym_tab, structs_sym_tab):
3926
"""Handle memory allocation for assignment statements."""
4027

0 commit comments

Comments
 (0)