diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bg/js/database.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js index 771a71c9..3de4c8b5 100644 --- a/ext/bg/js/database.js +++ b/ext/bg/js/database.js @@ -58,19 +58,6 @@ class Database { await this.prepare(); } - async findTerms(term, titles) { - this.validate(); - - const results = []; - await this.db.terms.where('expression').equals(term).or('reading').equals(term).each(row => { - if (titles.includes(row.dictionary)) { - results.push(Database.createTerm(row)); - } - }); - - return results; - } - async findTermsBulk(terms, titles) { const promises = []; const visited = {}; @@ -128,23 +115,6 @@ class Database { return results; } - async findTermMeta(term, titles) { - this.validate(); - - const results = []; - await this.db.termMeta.where('expression').equals(term).each(row => { - if (titles.includes(row.dictionary)) { - results.push({ - mode: row.mode, - data: row.data, - dictionary: row.dictionary - }); - } - }); - - return results; - } - async findTermMetaBulk(terms, titles) { const promises = []; const results = []; |