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 {
async addNote(note) {
async addNote() {
return null;
}
async canAddNotes(notes) {
async canAddNotes() {
return [];
}
@ -124,15 +124,15 @@ class AnkiNull {
return [];
}
async getModelFieldNames(modelName) {
async getModelFieldNames() {
return [];
}
async guiBrowse(query) {
async guiBrowse() {
return [];
}
async findNoteIds(notes) {
async findNoteIds() {
return [];
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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