Remove unused functions

This commit is contained in:
toasted-nutbread 2019-10-12 19:55:06 -04:00
parent a5d7de8e97
commit 127a728675

View File

@ -58,19 +58,6 @@ class Database {
await this.prepare(); 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) { async findTermsBulk(terms, titles) {
const promises = []; const promises = [];
const visited = {}; const visited = {};
@ -128,23 +115,6 @@ class Database {
return results; 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) { async findTermMetaBulk(terms, titles) {
const promises = []; const promises = [];
const results = []; const results = [];