Update unused arguments

This commit is contained in:
toasted-nutbread 2019-11-25 14:35:53 -05:00
parent ef833d2bea
commit acb70f126c
7 changed files with 14 additions and 14 deletions

View File

@ -108,11 +108,11 @@ class AnkiConnect {
*/ */
class AnkiNull { class AnkiNull {
async addNote(note) { async addNote() {
return null; return null;
} }
async canAddNotes(notes) { async canAddNotes() {
return []; return [];
} }
@ -124,15 +124,15 @@ class AnkiNull {
return []; return [];
} }
async getModelFieldNames(modelName) { async getModelFieldNames() {
return []; return [];
} }
async guiBrowse(query) { async guiBrowse() {
return []; return [];
} }
async findNoteIds(notes) { async findNoteIds() {
return []; return [];
} }
} }

View File

@ -177,7 +177,7 @@ class Backend {
} }
} }
checkLastError(e) { checkLastError() {
// NOP // NOP
} }
} }

View File

@ -167,7 +167,7 @@ class DisplaySearch extends Display {
this.onSearchQueryUpdated(query, true); this.onSearchQueryUpdated(query, true);
} }
onPopState(e) { onPopState() {
const query = DisplaySearch.getSearchQueryFromLocation(window.location.href) || ''; const query = DisplaySearch.getSearchQueryFromLocation(window.location.href) || '';
if (this.query !== null) { if (this.query !== null) {
if (this.isWanakanaEnabled()) { if (this.isWanakanaEnabled()) {
@ -245,7 +245,7 @@ class DisplaySearch extends Display {
initClipboardMonitor() { initClipboardMonitor() {
// ignore copy from search page // ignore copy from search page
window.addEventListener('copy', (e) => { window.addEventListener('copy', () => {
this.clipboardPrevText = document.getSelection().toString().trim(); this.clipboardPrevText = document.getSelection().toString().trim();
}); });
} }

View File

@ -113,6 +113,6 @@ function _apiInvoke(action, params={}) {
}); });
} }
function _apiCheckLastError(e) { function _apiCheckLastError() {
// NOP // NOP
} }

View File

@ -122,7 +122,7 @@ class Frontend {
} }
} }
onMouseOut(e) { onMouseOut() {
this.popupTimerClear(); this.popupTimerClear();
} }
@ -135,7 +135,7 @@ class Frontend {
} }
} }
onAuxClick(e) { onAuxClick() {
this.preventNextContextMenu = false; this.preventNextContextMenu = false;
} }

View File

@ -375,7 +375,7 @@ class TextSourceElement {
return this.content.length; return this.content.length;
} }
setStartOffset(length) { setStartOffset() {
return 0; return 0;
} }

View File

@ -42,7 +42,7 @@ class Display {
this.setInteractive(true); this.setInteractive(true);
} }
onError(error) { onError(_error) {
throw new Error('Override me'); throw new Error('Override me');
} }
@ -90,7 +90,7 @@ class Display {
} }
} }
onGlossaryMouseMove(e) { onGlossaryMouseMove() {
this.clickScanPrevent = true; this.clickScanPrevent = true;
} }