Skip to content
Snippets Groups Projects
Commit 99c3a8db authored by Frederik Hennig's avatar Frederik Hennig
Browse files

remove two superfluous code lines

parent 0a252c24
No related branches found
No related tags found
1 merge request!373Symbol Canonicalization, Loop-Invariant Code Motion, and AST Factory
Pipeline #64897 passed
......@@ -29,7 +29,6 @@ class CanonContext:
self.live_symbols_map[symb] = symb
return symb
else:
self.encountered_symbols.add(symb)
for i in count():
replacement_name = f"{symb.name}__{i}"
if self._ctx.find_symbol(replacement_name) is None:
......
......@@ -73,8 +73,6 @@ class HoistLoopInvariantDeclarations:
but makes no such assumption about instances of `CFunction`.
"""
# TODO: Write unit tests
def __init__(self, ctx: KernelCreationContext):
self._ctx = ctx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment