From 127a728675820aa7f92d14cff6559aef99bd78e4 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 12 Oct 2019 19:55:06 -0400 Subject: Remove unused functions --- ext/bg/js/database.js | 30 ------------------------------ 1 file changed, 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 = []; -- cgit v1.2.3