From 4b83003b3e628f173e4b2cb4a65c683ba68b13f9 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 13 Aug 2021 19:17:23 -0700 Subject: [PATCH] html_diff: Remove unused highlight_with_class function. Signed-off-by: Anders Kaseorg --- tools/test-backend | 1 - zerver/lib/html_diff.py | 4 ---- 2 files changed, 5 deletions(-) diff --git a/tools/test-backend b/tools/test-backend index eb6194b060..da907ae9f4 100755 --- a/tools/test-backend +++ b/tools/test-backend @@ -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", diff --git a/zerver/lib/html_diff.py b/zerver/lib/html_diff.py index 5888581e51..d612ee6e51 100644 --- a/zerver/lib/html_diff.py +++ b/zerver/lib/html_diff.py @@ -4,10 +4,6 @@ import lxml from lxml.html.diff import htmldiff -def highlight_with_class(text: str, klass: str) -> str: - return f'{text}' - - def highlight_html_differences(s1: str, s2: str, msg_id: Optional[int] = None) -> str: retval = htmldiff(s1, s2) fragment = lxml.html.fromstring(retval)