From 79c1732b00087ca90bada138962c974037afc5fb Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 11 Feb 2020 13:12:09 +1000 Subject: [PATCH] stripLatex() does not appear to be used anywhere --- pylib/anki/latex.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pylib/anki/latex.py b/pylib/anki/latex.py index 0ed1325d2..fc79642a6 100644 --- a/pylib/anki/latex.py +++ b/pylib/anki/latex.py @@ -38,16 +38,6 @@ if isMac: os.environ["PATH"] += ":/usr/texbin:/Library/TeX/texbin" -def stripLatex(text) -> Any: - for match in regexps["standard"].finditer(text): - text = text.replace(match.group(), "") - for match in regexps["expression"].finditer(text): - text = text.replace(match.group(), "") - for match in regexps["math"].finditer(text): - text = text.replace(match.group(), "") - return text - - def on_card_did_render(output: TemplateRenderOutput, ctx: TemplateRenderContext): output.question_text = render_latex( output.question_text, ctx.note_type(), ctx.col()