@@ -484,7 +484,6 @@ cdef class Function:
484484 cdef readonly tuple defaults
485485 cdef readonly Program program
486486 cdef readonly int64_t address
487- cdef readonly object root_path
488487 cdef readonly bint record_stats
489488 cdef readonly tuple captures
490489 cdef readonly int64_t call_depth
@@ -501,7 +500,6 @@ cdef class Function:
501500 return null_
502501 cdef int64_t i, lnames_top, stack_top, k= PyTuple_GET_SIZE(self .captures), m= PyTuple_GET_SIZE(self .parameters), n= PyTuple_GET_SIZE(args)
503502 cdef PyObject* objptr
504- cdef object saved_path
505503 if context.state is None :
506504 context.state = StateDict()
507505 cdef VectorStack lnames = context.lnames
@@ -522,8 +520,6 @@ cdef class Function:
522520 push(lnames, < Vector> objptr)
523521 else :
524522 push(lnames, < Vector> PyTuple_GET_ITEM(self .defaults, i))
525- saved_path = context.path
526- context.path = self .root_path
527523 self .call_depth += 1
528524 try :
529525 self .program._execute(context, self .address, self .record_stats)
@@ -533,7 +529,6 @@ cdef class Function:
533529 cdef Vector result = pop(stack)
534530 assert stack.top == stack_top, " Bad function return stack"
535531 assert lnames.top == lnames_top, " Bad function return lnames"
536- context.path = saved_path
537532 return result
538533
539534
@@ -1386,7 +1381,6 @@ cdef class Program:
13861381 function.parameters = (< InstructionFunc> instruction).parameters
13871382 function.program = self
13881383 function.address = (< InstructionFunc> instruction).offset + pc
1389- function.root_path = context.path
13901384 function.record_stats = record_stats
13911385 n = PyTuple_GET_SIZE(function.parameters)
13921386 function.defaults = pop_tuple(stack, n)
0 commit comments