Code style, remove unneeded module and TODO

This commit is contained in:
disinvite 2023-11-19 12:59:04 -05:00
parent ba5da854d6
commit ae06b62799
2 changed files with 2 additions and 6 deletions

View File

@ -1,7 +1,6 @@
import os
import sys
import argparse
from typing import TextIO
from isledecomp.dir import (
walk_source_dir,
file_is_cpp
@ -24,9 +23,6 @@ def check_file(filename: str, verbose: bool = False) -> bool:
with open(filename, 'r') as f:
code_blocks = find_code_blocks(f)
# TODO: Should combine these checks if/when we refactor.
# This is just for simplicity / proof of concept.
f.seek(os.SEEK_SET, 0)
bad_comments = [(block.start_line, block.offset_comment)
for block in code_blocks

View File

@ -41,8 +41,8 @@ def template_function_name(line: str) -> str:
# If we don't match, you get whatever is on the line as the signature
if template_match is not None:
return template_match.group(1)
else:
return line
return line
def remove_trailing_comment(line: str) -> str: