Skip to content

Commit

Permalink
Remove unused member variable hadMatch from the find controller
Browse files Browse the repository at this point in the history
It's only being assigned, but not read anymore.
  • Loading branch information
timvandermeij committed Sep 11, 2018
1 parent 9c764da commit 21d959b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions web/pdf_find_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ class PDFFindController {
this.selected.pageIdx = this.selected.matchIdx = -1;
this.offset.pageIdx = currentPageIndex;
this.offset.matchIdx = null;
this.hadMatch = false;
this.resumePageIdx = null;
this.pageMatches = [];
this.matchesCountTotal = 0;
Expand Down Expand Up @@ -411,7 +410,6 @@ class PDFFindController {
(previous && offset.matchIdx > 0)) {
// The simple case; we just have advance the matchIdx to select
// the next match on the page.
this.hadMatch = true;
offset.matchIdx = (previous ? offset.matchIdx - 1 :
offset.matchIdx + 1);
this._updateMatch(/* found = */ true);
Expand All @@ -432,7 +430,6 @@ class PDFFindController {

if (numMatches) {
// There were matches for the page, so initialize `matchIdx`.
this.hadMatch = true;
offset.matchIdx = (previous ? numMatches - 1 : 0);
this._updateMatch(/* found = */ true);
return true;
Expand Down

0 comments on commit 21d959b

Please sign in to comment.