Skip to content

Commit

Permalink
chore: remove unused method from Bitfield class (#41)
Browse files Browse the repository at this point in the history
`Bitfield.prototype.clear` was never used, so we can remove it.
  • Loading branch information
EvanHahn committed Mar 13, 2024
1 parent 9b81ec1 commit 0c4004d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/bitfield.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,6 @@ class Bitfield {
this.unflushed?.push(p)
}

/** @returns {Promise<void>} */
clear() {
return new Promise((resolve, reject) => {
if (!this.storage) return resolve()
this.storage.del(0, Infinity, (err) => {
if (err) reject(err)
else resolve()
})
})
}

/** @returns {Promise<void>} */
close() {
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 0c4004d

Please sign in to comment.