diff --git a/lib/replicator.js b/lib/replicator.js index 49b413de..68de631b 100644 --- a/lib/replicator.js +++ b/lib/replicator.js @@ -684,8 +684,6 @@ class Peer { onrange ({ drop, start, length }) { const has = drop === false - const rangeStart = this.remoteBitfield.findFirst(!has, start) - const rangeLength = length - (rangeStart - start) if (length === 1) { this.remoteBitfield.setRange(start, length, has)