List[
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user