Skip to content

Commit

Permalink
Remove unrelated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Apr 18, 2024
1 parent 2d2d0d3 commit 4035765
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions conda_build/variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,6 @@ def find_used_variables_in_shell_script(variant, file_path):
text = f.read()
used_variables = set()
for v in variant:
if v not in text:
continue
variant_regex = rf"(^[^$]*?\$\{{?\s*{re.escape(v)}\s*[\s|\}}])"
if re.search(variant_regex, text, flags=re.MULTILINE | re.DOTALL):
used_variables.add(v)
Expand All @@ -784,8 +782,6 @@ def find_used_variables_in_batch_script(variant, file_path):
text = f.read()
used_variables = set()
for v in variant:
if v not in text:
continue
variant_regex = rf"\%{re.escape(v)}\%"
if re.search(variant_regex, text, flags=re.MULTILINE | re.DOTALL):
used_variables.add(v)
Expand Down

0 comments on commit 4035765

Please sign in to comment.