mirror of https://github.com/gorhill/uBlock.git
Fix eslint warnings
This commit is contained in:
parent
152e9c9a95
commit
08aa3ebe10
|
@ -19,8 +19,6 @@
|
|||
Home: https://github.com/gorhill/uBlock
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
if (
|
||||
typeof vAPI === 'object' &&
|
||||
typeof vAPI.DOMProceduralFilterer !== 'object'
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
Home: https://github.com/gorhill/uBlock
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
+--> domCollapser
|
||||
|
@ -1050,7 +1048,6 @@ vAPI.DOMFilterer = class {
|
|||
const hashes = [];
|
||||
const nodes = pendingNodes;
|
||||
const deadline = t0 + 4;
|
||||
let processed = 0;
|
||||
let scanned = 0;
|
||||
for (;;) {
|
||||
const n = nextPendingNodes();
|
||||
|
@ -1065,10 +1062,8 @@ vAPI.DOMFilterer = class {
|
|||
classesFromNode(node, hashes);
|
||||
scanned += 1;
|
||||
}
|
||||
processed += n;
|
||||
if ( performance.now() >= deadline ) { break; }
|
||||
}
|
||||
//console.info(`[domSurveyor][${hostname}] Surveyed ${scanned}/${processed} nodes in ${(performance.now()-t0).toFixed(2)} ms: ${hashes.length} hashes`);
|
||||
scannedCount += scanned;
|
||||
if ( scannedCount >= maxSurveyNodes ) {
|
||||
stop();
|
||||
|
|
Loading…
Reference in New Issue