summaryrefslogtreecommitdiff
path: root/ext/bg/js/database.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r--ext/bg/js/database.js17
1 files changed, 1 insertions, 16 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index fcf8ef3f..14b3243a 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -220,7 +220,7 @@ class Database {
return result;
}
- async getTitles() {
+ async summarize() {
if (this.db) {
return this.db.dictionaries.toArray();
} else {
@@ -228,21 +228,6 @@ class Database {
}
}
- async getTitlesWithSequences() {
- if (!this.db) {
- throw 'Database not initialized';
- }
-
- const titles = [];
- await this.db.dictionaries.each(row => {
- if (row.hasSequences) {
- titles.push(row.title);
- }
- });
-
- return titles;
- }
-
async importDictionary(archive, callback) {
if (!this.db) {
throw 'Database not initialized';