diff options
Diffstat (limited to 'ext/bg/js/search-query-parser.js')
-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; - } } |