this repo has no description

Remove CompiledFunction.id

It's unused and we can get rid of the global fn_counter.

authored by bernsteinbear.com and committed by

Max Bernstein 4cbf3161 2af3efde

-5
-5
compiler.py
··· 37 37 Env = Dict[str, str] 38 38 39 39 40 - fn_counter = itertools.count() 41 - 42 - 43 40 @dataclasses.dataclass 44 41 class CompiledFunction: 45 - id: int = dataclasses.field(default=0, init=False, compare=False, hash=False) 46 42 name: str 47 43 params: typing.List[str] 48 44 fields: typing.List[str] = dataclasses.field(default_factory=list) 49 45 code: typing.List[str] = dataclasses.field(default_factory=list) 50 46 51 47 def __post_init__(self) -> None: 52 - self.id = next(fn_counter) 53 48 self.code.append("HANDLES();") 54 49 for param in self.params: 55 50 # The parameters are raw pointers and must be updated on GC