diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-09-09 17:46:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 17:46:34 -0400 |
commit | 5d2261acb972374c45fca022f121609405873e90 (patch) | |
tree | cc1feef36ea93ae12784503fe6b3205eb0ed81ce /ext/bg/js/backend.js | |
parent | 8408bee90a0a78a77e7c5834e633a0387f9f434c (diff) |
Update the AnkiController class to use an instance of AnkiConnect directly (#795)
* Update AnkiController to use AnkiConnect instance directly
* Remove unused
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r-- | ext/bg/js/backend.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index df979c6f..5fdca569 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -113,9 +113,6 @@ class Backend { ['getQueryParserTemplatesHtml', {async: true, contentScript: true, handler: this._onApiGetQueryParserTemplatesHtml.bind(this)}], ['getZoom', {async: true, contentScript: true, handler: this._onApiGetZoom.bind(this)}], ['getDefaultAnkiFieldTemplates', {async: false, contentScript: true, handler: this._onApiGetDefaultAnkiFieldTemplates.bind(this)}], - ['getAnkiDeckNames', {async: true, contentScript: false, handler: this._onApiGetAnkiDeckNames.bind(this)}], - ['getAnkiModelNames', {async: true, contentScript: false, handler: this._onApiGetAnkiModelNames.bind(this)}], - ['getAnkiModelFieldNames', {async: true, contentScript: false, handler: this._onApiGetAnkiModelFieldNames.bind(this)}], ['getDictionaryInfo', {async: true, contentScript: false, handler: this._onApiGetDictionaryInfo.bind(this)}], ['getDictionaryCounts', {async: true, contentScript: false, handler: this._onApiGetDictionaryCounts.bind(this)}], ['purgeDatabase', {async: true, contentScript: false, handler: this._onApiPurgeDatabase.bind(this)}], @@ -726,18 +723,6 @@ class Backend { return this._defaultAnkiFieldTemplates; } - async _onApiGetAnkiDeckNames() { - return await this._anki.getDeckNames(); - } - - async _onApiGetAnkiModelNames() { - return await this._anki.getModelNames(); - } - - async _onApiGetAnkiModelFieldNames({modelName}) { - return await this._anki.getModelFieldNames(modelName); - } - async _onApiGetDictionaryInfo() { return await this._dictionaryDatabase.getDictionaryInfo(); } |