List[
Some checks failed
CI Pipeline / Build Docker Image (push) Successful in 20s
CI Pipeline / Test US10 Build (push) Failing after 19s

This commit is contained in:
2025-09-12 16:23:00 +02:00
parent 36aed888af
commit ae72dd7459

View File

@@ -102,7 +102,7 @@ def build_asset_enum(asset_map: Dict[str, str], existing_assets: Dict[str, str])
def remove_unnecessary_unused_asset_lines(lines: List[str]) -> List[str]: def remove_unnecessary_unused_asset_lines(lines: List[str]) -> List[str]:
prev_unused = False prev_unused = False
unused_asset_line_indexes = [] unused_asset_line_indexes = []
# Create list of lines that contain "// xx is unused" # Create List of lines that contain "// xx is unused"
for idx, line in enumerate(lines): for idx, line in enumerate(lines):
if line.endswith('unused') is False: if line.endswith('unused') is False:
continue continue
@@ -146,7 +146,7 @@ def remove_unnecessary_unused_asset_lines(lines: List[str]) -> List[str]:
group = [] group = []
target = next + idx target = next + idx
# Replace the "unnecessary" lines with a single line that lists the range that is unused # Replace the "unnecessary" lines with a single line that Lists the range that is unused
offset = 0 offset = 0
address_regex = re.compile(r"^// (\w+) unused$") address_regex = re.compile(r"^// (\w+) unused$")
for group in groups: for group in groups: