aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-19 12:44:23 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-19 12:44:23 -0400
commit6f5fa6771bac24bb56c137fea6d7387d507aaf39 (patch)
tree05562bb41190a531f8cf9df78388ad93f61898a5 /ext/bg
parent97de7883a388099d5f0ff235c678e1f01c6858e2 (diff)
Remove unused database functions
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/database.js52
1 files changed, 0 insertions, 52 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index 37f19359..c4d332bf 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -90,19 +90,6 @@ class Database {
return results;
}
- async findTermsExact(term, reading, titles) {
- this.validate();
-
- const results = [];
- await this.db.terms.where('expression').equals(term).each(row => {
- if (row.reading === reading && titles.includes(row.dictionary)) {
- results.push(Database.createTerm(row));
- }
- });
-
- return results;
- }
-
async findTermsExactBulk(termList, readingList, titles) {
this.validate();
@@ -129,19 +116,6 @@ class Database {
return results;
}
- async findTermsBySequence(sequence, mainDictionary) {
- this.validate();
-
- const results = [];
- await this.db.terms.where('sequence').equals(sequence).each(row => {
- if (row.dictionary === mainDictionary) {
- results.push(Database.createTerm(row));
- }
- });
-
- return results;
- }
-
async findTermsBySequenceBulk(sequenceList, mainDictionary) {
this.validate();
@@ -172,36 +146,10 @@ class Database {
return this.findGenericBulk('termMeta', 'expression', termList, titles, Database.createMeta);
}
- async findKanji(kanji, titles) {
- this.validate();
-
- const results = [];
- await this.db.kanji.where('character').equals(kanji).each(row => {
- if (titles.includes(row.dictionary)) {
- results.push(Database.createKanji(row));
- }
- });
-
- return results;
- }
-
async findKanjiBulk(kanjiList, titles) {
return this.findGenericBulk('kanji', 'character', kanjiList, titles, Database.createKanji);
}
- async findKanjiMeta(kanji, titles) {
- this.validate();
-
- const results = [];
- await this.db.kanjiMeta.where('character').equals(kanji).each(row => {
- if (titles.includes(row.dictionary)) {
- results.push(Database.createMeta(row));
- }
- });
-
- return results;
- }
-
async findKanjiMetaBulk(kanjiList, titles) {
return this.findGenericBulk('kanjiMeta', 'character', kanjiList, titles, Database.createMeta);
}