From 61d127981fdb79b43ed5d73c5186ef7330e85b99 Mon Sep 17 00:00:00 2001 From: Alvaro Alda Date: Wed, 20 Feb 2019 21:42:23 +0100 Subject: [PATCH] Remove unnecessary conditions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gabriel Díaz --- balloon/hyper2/pruning/insert.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/balloon/hyper2/pruning/insert.go b/balloon/hyper2/pruning/insert.go index 1b0adb6c6..e6f3dbf0f 100644 --- a/balloon/hyper2/pruning/insert.go +++ b/balloon/hyper2/pruning/insert.go @@ -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()