summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-25 14:35:53 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-26 22:06:27 -0500
commitacb70f126cd87234b442fd599061f1b7539c846b (patch)
treeaff2dabacced5f2b8aedc0a9fe4ac2076cdb48af /ext
parentef833d2bea07cd2e979dd558eaba141f880063cb (diff)
Update unused arguments
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/anki.js10
-rw-r--r--ext/bg/js/backend.js2
-rw-r--r--ext/bg/js/search.js4
-rw-r--r--ext/fg/js/api.js2
-rw-r--r--ext/fg/js/frontend.js4
-rw-r--r--ext/fg/js/source.js2
-rw-r--r--ext/mixed/js/display.js4
7 files changed, 14 insertions, 14 deletions
diff --git a/ext/bg/js/anki.js b/ext/bg/js/anki.js
index 9f851f13..ac45784b 100644
--- a/ext/bg/js/anki.js
+++ b/ext/bg/js/anki.js
@@ -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 [];
}
}
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index 4190116b..73df7cf5 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -177,7 +177,7 @@ class Backend {
}
}
- checkLastError(e) {
+ checkLastError() {
// NOP
}
}
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index e5cdf272..a98d7a9a 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -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();
});
}
diff --git a/ext/fg/js/api.js b/ext/fg/js/api.js
index f881b23d..0e100b59 100644
--- a/ext/fg/js/api.js
+++ b/ext/fg/js/api.js
@@ -113,6 +113,6 @@ function _apiInvoke(action, params={}) {
});
}
-function _apiCheckLastError(e) {
+function _apiCheckLastError() {
// NOP
}
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index 8297f54d..bcdfd152 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -122,7 +122,7 @@ class Frontend {
}
}
- onMouseOut(e) {
+ onMouseOut() {
this.popupTimerClear();
}
@@ -135,7 +135,7 @@ class Frontend {
}
}
- onAuxClick(e) {
+ onAuxClick() {
this.preventNextContextMenu = false;
}
diff --git a/ext/fg/js/source.js b/ext/fg/js/source.js
index e6b991c4..a84feed4 100644
--- a/ext/fg/js/source.js
+++ b/ext/fg/js/source.js
@@ -375,7 +375,7 @@ class TextSourceElement {
return this.content.length;
}
- setStartOffset(length) {
+ setStartOffset() {
return 0;
}
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index b454bf59..2396805a 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -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;
}