From 1f0a434e965aabad6b10bff4970a8c44a61961be Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 24 Oct 2019 20:02:15 -0400 Subject: [PATCH] Remove unused vars --- ext/fg/js/frontend.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index 5e2ef529..957f57c9 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -212,7 +212,7 @@ class Frontend { } } - onAfterSearch(newRange, cause, searched, success) { + onAfterSearch(newRange, cause) { if (cause === 'mouse') { return; } @@ -335,16 +335,12 @@ class Frontend { async searchSource(textSource, cause) { let hideResults = false; - let searched = false; - let success = false; try { if (!this.textSourceLast || !this.textSourceLast.equals(textSource)) { - searched = true; this.pendingLookup = true; const focus = (cause === 'mouse'); hideResults = !await this.searchTerms(textSource, focus) && !await this.searchKanji(textSource, focus); - success = true; } } catch (e) { if (window.yomichan_orphaned) { @@ -364,7 +360,7 @@ class Frontend { } this.pendingLookup = false; - this.onAfterSearch(this.textSourceLast, cause, searched, success); + this.onAfterSearch(this.textSourceLast, cause); } }