mirror of https://github.com/zulip/zulip.git
html_diff: Remove unused highlight_with_class function.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
89277e84df
commit
4b83003b3e
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue