From 0abc80c4cc4d014830975904a4bf461c1a1b9672 Mon Sep 17 00:00:00 2001 From: Christophe Diederichs Date: Thu, 19 Sep 2024 10:27:39 +0100 Subject: [PATCH] remove unused writer.isIndexer prop --- index.js | 6 +----- lib/writer.js | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/index.js b/index.js index a0661549..abee27db 100644 --- a/index.js +++ b/index.js @@ -1090,13 +1090,9 @@ module.exports = class Autobase extends ReadyResource { if (data) { w.isRemoved = data.isRemoved - w.isIndexer = data.isIndexer + w.isActiveIndexer = !!data.isIndexer } else { w.isRemoved = true - w.isIndexer = false - } - - if (!w.isIndexer) { w.isActiveIndexer = false } } diff --git a/lib/writer.js b/lib/writer.js index edd9fac0..0f650143 100644 --- a/lib/writer.js +++ b/lib/writer.js @@ -20,7 +20,6 @@ module.exports = class Writer extends ReadyResource { this.range = null this.nodes = new NodeBuffer(length) this.node = null - this.isIndexer = false this.isActiveIndexer = false this.available = length this.length = length