From c62cc01642b29c13a38f3bcc08f2fa144107c158 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 29 Oct 2017 10:42:39 -0700 Subject: simplify database interface --- ext/bg/js/database.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'ext/bg/js/database.js') 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'; -- cgit v1.2.3