From 6345fcdeff9bd95d4e523a0656be0d67b13119a2 Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Mon, 13 Oct 2025 18:38:07 +0530 Subject: [PATCH] Remove unused is_helper_call from allocation_pass --- pythonbpf/allocation_pass.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pythonbpf/allocation_pass.py b/pythonbpf/allocation_pass.py index 5ec631a..9d82484 100644 --- a/pythonbpf/allocation_pass.py +++ b/pythonbpf/allocation_pass.py @@ -22,19 +22,6 @@ class LocalSymbol: yield self.metadata -def _is_helper_call(call_node): - """Check if a call node is a BPF helper function call.""" - if isinstance(call_node.func, ast.Name): - # Exclude print from requiring temps (handles f-strings differently) - func_name = call_node.func.id - return HelperHandlerRegistry.has_handler(func_name) and func_name != "print" - - elif isinstance(call_node.func, ast.Attribute): - return HelperHandlerRegistry.has_handler(call_node.func.attr) - - return False - - def handle_assign_allocation(builder, stmt, local_sym_tab, structs_sym_tab): """Handle memory allocation for assignment statements."""