aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-11-11 01:03:35 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-11-23 17:48:03 +0200
commit8d9a635d5c01e9a954284c82d1cddfab89f8dd5b (patch)
tree9f35b81659d5190be7dcced6d2d4343ab1e97758 /ext/bg/js
parentc1d24208d383e687f443c4e7dfc7bfda81d191bd (diff)
remove dead code
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/search-query-parser.js15
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;
- }
}