summaryrefslogtreecommitdiff
path: root/ext/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js')
-rw-r--r--ext/js/comm/anki-connect.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/ext/js/comm/anki-connect.js b/ext/js/comm/anki-connect.js
index a763f394..72ad58a5 100644
--- a/ext/js/comm/anki-connect.js
+++ b/ext/js/comm/anki-connect.js
@@ -130,17 +130,6 @@ export class AnkiConnect {
/**
* @param {import('anki').Note[]} notes
- * @returns {Promise<boolean[]>}
- */
- async canAddNotes(notes) {
- if (!this._enabled) { return []; }
- await this._checkVersion();
- const result = await this._invoke('canAddNotes', {notes});
- return this._normalizeArray(result, notes.length, 'boolean');
- }
-
- /**
- * @param {import('anki').Note[]} notes
* @returns {Promise<({ canAdd: true } | { canAdd: false, error: string })[]>}
*/
async canAddNotesWithErrorDetail(notes) {