mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 08:41:16 +00:00
Code style, remove unneeded module and TODO
This commit is contained in:
parent
ba5da854d6
commit
ae06b62799
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user