From 56a5738018dfff9f7b42377c099596767a1490fc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 15 Feb 2022 22:22:07 +0530 Subject: [PATCH] Remove unused code --- kittens/hints/main.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kittens/hints/main.py b/kittens/hints/main.py index 70988bc0b..4d970a4e4 100644 --- a/kittens/hints/main.py +++ b/kittens/hints/main.py @@ -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