style(fpga): drop dead regex in gen_chirp_mem parser

Leftover from two alternative parsing approaches; the unused pat
triggered ruff F841. Only line_pat is actually used.
This commit is contained in:
Jason
2026-04-23 04:48:23 +05:45
parent 5617d552df
commit e8eb24f4f5

View File

@@ -62,12 +62,7 @@ def _parse_radar_params(path):
macros this script consumes are all integers. Comments / strings /
concat macros are ignored by the regex.
"""
# Matches: `define RP_NAME <int-literal> [// comment]
pat = re.compile(
r"^\s*`define\s+(RP_\w+)\s+"
r"(?:(\d+)'[bdh][0-9a-fA-F_]+|0[xX][0-9a-fA-F]+|\d+)"
)
# Simpler: grab the whole RHS up to comment, then eval as int.
# Grab RHS up to an optional `// ...` comment, then parse as int.
line_pat = re.compile(r"^\s*`define\s+(RP_\w+)\s+([^/\n]+?)(?://.*)?$")
params = {}
with open(path) as f: