aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-12 19:55:06 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-18 21:58:28 -0400
commit127a728675820aa7f92d14cff6559aef99bd78e4 (patch)
tree909d92c7e7892bfaf532b99be4a0b81791c555a7
parenta5d7de8e97400f63c328ccde9b313a127cef0611 (diff)
Remove unused functions
-rw-r--r--ext/bg/js/database.js30
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 = [];