Skip to content

Commit 59b2fbe

Browse files
committed
chore(bmt): remove dead level
1 parent e3d5b3a commit 59b2fbe

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/bmt/bmt.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ func (h *Hasher) processSection(i int, final bool) {
179179
// since hashing the parent is synchronous the same hasher can be used.
180180
func (h *Hasher) writeNode(n *node, isLeft bool, s []byte) {
181181
var err error
182-
level := 1
183182
for {
184183
// at the root of the bmt just write the result to the result channel
185184
if n == nil {
@@ -208,7 +207,6 @@ func (h *Hasher) writeNode(n *node, isLeft bool, s []byte) {
208207
}
209208
isLeft = n.isLeft
210209
n = n.parent
211-
level++
212210
}
213211
}
214212

0 commit comments

Comments
 (0)