Skip to content

Commit 2e8995f

Browse files
committed
inline addLeafSegment
1 parent d1b015f commit 2e8995f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

index.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -341,19 +341,7 @@ function addAllLeavesOfNode(results, pos, numItems, indices, nodeSize, levelBoun
341341
const posEndStart = indices[posEnd >> 2] | 0;
342342
posEnd = Math.min(posEndStart + nodeSize * 4, upperBound(posEndStart, levelBounds)) - 4;
343343
}
344-
addLeafSegment(results, posStart, posEnd, indices, filterFn);
345-
}
346344

347-
/**
348-
* Add consecutive leaves to the search result.
349-
* @param {number[]} results
350-
* @param {number} posStart
351-
* @param {number} posEnd
352-
* @param {Uint16Array<ArrayBuffer> | Uint32Array<ArrayBuffer>} indices
353-
* @param {(index: number) => boolean} [filterFn] An optional function for filtering the results.
354-
* @returns {void}
355-
*/
356-
function addLeafSegment(results, posStart, posEnd, indices, filterFn) {
357345
for (let /** @type number */ leafPos = posStart; leafPos <= posEnd; leafPos += 4) {
358346
const leafIndex = indices[leafPos >> 2];
359347
if (filterFn === undefined || filterFn(leafIndex)) {

0 commit comments

Comments
 (0)