diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2019-11-11 01:03:35 +0200 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2019-11-23 17:48:03 +0200 |
commit | 8d9a635d5c01e9a954284c82d1cddfab89f8dd5b (patch) | |
tree | 9f35b81659d5190be7dcced6d2d4343ab1e97758 /ext | |
parent | c1d24208d383e687f443c4e7dfc7bfda81d191bd (diff) |
remove dead code
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bg/js/search-query-parser.js | 15 |
1 files changed, 0 insertions, 15 deletions
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; - } } |