diff --git a/pdfmajor/interpreter/commands/__init__.py b/pdfmajor/interpreter/commands/__init__.py index 9c501fe..531e986 100644 --- a/pdfmajor/interpreter/commands/__init__.py +++ b/pdfmajor/interpreter/commands/__init__.py @@ -23,8 +23,6 @@ def process_command_stream(streams: List[PDFStream], font_cache: dict = None, st if font_cache is None: font_cache = {} parser = PDFContentParser(streams) - # from .cmd_record import CmdRecord - # history = CmdRecord() for obj in parser: if isinstance(obj, PSKeyword): name = keyword_name(obj) diff --git a/pdfmajor/interpreter/commands/cmd_record.py b/pdfmajor/interpreter/commands/cmd_record.py deleted file mode 100644 index 82ae325..0000000 --- a/pdfmajor/interpreter/commands/cmd_record.py +++ /dev/null @@ -1,9 +0,0 @@ - -class CmdRecord: - def __init__(self, file_name: str = "./cmd_record"): - self.file = open(file_name, 'w') - self.file.write("c_name,func_name,args\n") - def write(self, c_name, func_name, args): - self.file.write(f"{c_name},{func_name},{args}\n") - def close(self): - self.file.close()