aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/database.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-10-29 10:42:39 -0700
committerAlex Yatskov <alex@foosoft.net>2017-10-29 10:42:39 -0700
commitc62cc01642b29c13a38f3bcc08f2fa144107c158 (patch)
tree571bf3c63b405ebb9c69ca8f687f91e1950d14c4 /ext/bg/js/database.js
parent7d29e5b533a4607d1580cb6982de3870605805af (diff)
simplify database interface
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';