diff --git a/src/HtmlUtils.tsx b/src/HtmlUtils.tsx
index 2ce9e40aa6..bd314c2e5f 100644
--- a/src/HtmlUtils.tsx
+++ b/src/HtmlUtils.tsx
@@ -339,32 +339,6 @@ class HtmlHighlighter extends BaseHighlighter {
}
}
-// eslint-disable-next-line @typescript-eslint/no-unused-vars
-class TextHighlighter extends BaseHighlighter {
- private key = 0;
-
- /* create a node to hold the given content
- *
- * snippet: content of the span
- * highlight: true to highlight as a search match
- *
- * returns a React node
- */
- protected processSnippet(snippet: string, highlight: boolean): React.ReactNode {
- const key = this.key++;
-
- let node =
- { snippet }
- ;
-
- if (highlight && this.highlightLink) {
- node = { node };
- }
-
- return node;
- }
-}
-
interface IContent {
format?: string;
// eslint-disable-next-line camelcase