From 8d9a635d5c01e9a954284c82d1cddfab89f8dd5b Mon Sep 17 00:00:00 2001 From: siikamiika Date: Mon, 11 Nov 2019 01:03:35 +0200 Subject: remove dead code --- ext/bg/js/search-query-parser.js | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'ext') diff --git a/ext/bg/js/search-query-parser.js b/ext/bg/js/search-query-parser.js index 81eb18c3..2e17688e 100644 --- a/ext/bg/js/search-query-parser.js +++ b/ext/bg/js/search-query-parser.js @@ -154,19 +154,4 @@ class QueryParser { this.onMouseLeave(e); }); } - - async parseText(text) { - const results = []; - while (text) { - const {definitions, length} = await apiTermsFind(text, {}, this.search.getOptionsContext()); - if (length) { - results.push(definitions); - text = text.slice(length); - } else { - results.push(text[0]); - text = text.slice(1); - } - } - return results; - } } -- cgit v1.2.3