Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
n-io committed Nov 5, 2024
1 parent d8c0ffe commit 0c003f5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions xdsl/transforms/lower_csl_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import re
from dataclasses import dataclass
from pathlib import Path

Expand Down Expand Up @@ -307,12 +306,6 @@ def _make_import_struct(self, import_op: csl_wrapper.ImportOp):
out_structs.append(csl.ConcatStructOp(out_structs[-1], s))
return out_structs

def _get_name_hint(self, import_op: csl_wrapper.ImportOp) -> str | None:
if m := re.match(r"<(.*\W)?(\w+)>", import_op.module.data):
return m.group(2)
elif m := re.match(r"(.*\W)?(\w+)\.csl", import_op.module.data):
return m.group(2)

@op_type_rewrite_pattern
def match_and_rewrite(self, op: csl_wrapper.ImportOp, rewriter: PatternRewriter, /):
csl_mod = self._get_csl_mod(op)
Expand Down

0 comments on commit 0c003f5

Please sign in to comment.