html_diff: Remove unused highlight_with_class function.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-08-13 19:17:23 -07:00 committed by Tim Abbott
parent 89277e84df
commit 4b83003b3e
2 changed files with 0 additions and 5 deletions

View File

@ -93,7 +93,6 @@ not_yet_fully_covered = [
"zerver/lib/error_notify.py",
"zerver/lib/export.py",
"zerver/lib/fix_unreads.py",
"zerver/lib/html_diff.py",
"zerver/lib/import_realm.py",
"zerver/lib/logging_util.py",
"zerver/lib/migrate.py",

View File

@ -4,10 +4,6 @@ import lxml
from lxml.html.diff import htmldiff
def highlight_with_class(text: str, klass: str) -> str:
return f'<span class="{klass}">{text}</span>'
def highlight_html_differences(s1: str, s2: str, msg_id: Optional[int] = None) -> str:
retval = htmldiff(s1, s2)
fragment = lxml.html.fromstring(retval)