Skip to content

Commit c2c1774

Browse files
committed
Remove store_through_chain
1 parent cac88d1 commit c2c1774

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pythonbpf/binary_ops.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@ def get_operand_value(func, operand, builder, local_sym_tab):
3737
raise TypeError(f"Unsupported operand type: {type(operand)}")
3838

3939

40-
def store_through_chain(value, chain, builder):
41-
"""Store a value through a pointer chain."""
42-
if not chain or len(chain) < 2:
43-
raise ValueError("Pointer chain must have at least two elements")
44-
45-
for ptr in reversed(chain[1:]):
46-
builder.store(value, ptr)
47-
value = ptr
48-
49-
5040
def handle_binary_op_impl(func, rval, builder, local_sym_tab):
5141
op = rval.op
5242
left, lchain, _ = get_operand_value(func, rval.left, builder, local_sym_tab)

0 commit comments

Comments
 (0)