From 6c39213116c1d36336875607d6d8b8d3caac6188 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 1 Sep 2020 15:37:07 +0100 Subject: [PATCH] remove unused class TextHighlighter --- src/HtmlUtils.tsx | 26 -------------------------- 1 file changed, 26 deletions(-) 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