Remove unused code

This commit is contained in:
Kovid Goyal 2022-02-15 22:22:07 +05:30
parent 919667129f
commit 56a5738018
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -432,11 +432,6 @@ def load_custom_processor(customize_processing: str) -> Any:
return runpy.run_path(custom_path, run_name='__main__')
def remove_escape_codes(text: str) -> str:
# remove SGR and OSC 133 escape codes
return re.sub(r'\x1b(?:\[.*?m|\]133;.*?\x1b\\)', '', text)
def process_escape_codes(text: str) -> Tuple[str, Tuple[Mark, ...]]:
hyperlinks: List[Mark] = []
removed_size = idx = 0