Skip to content

Commit

Permalink
Remove unnecessary conditions
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriel Díaz <[email protected]>
  • Loading branch information
aalda and gdiazlo committed Feb 25, 2019
1 parent 2f41332 commit 61d1279
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions balloon/hyper2/pruning/insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,6 @@ func PruneToInsert(index []byte, value []byte, cacheHeightLimit uint16, batches
return
}

// on an internal node of the subtree

// we found a node in our path and it is a shortcut leaf
if batch.HasLeafAt(iBatch) {
// push down leaf
key, value := batch.GetLeafKVAt(iBatch)
leaves = leaves.InsertSorted(Leaf{key, value})
batch.ResetElementAt(iBatch)
batch.ResetElementAt(2*iBatch + 1)
batch.ResetElementAt(2*iBatch + 2)
traverseThroughCache(pos, leaves, batch, iBatch, ops)
return
}

// on an internal node with more than one leaf

rightPos := pos.Right()
Expand Down

0 comments on commit 61d1279

Please sign in to comment.