Skip to content

Commit

Permalink
package clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Gaetano Padula committed Aug 27, 2024
1 parent 97adc11 commit 40ea83a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions btree.go
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,7 @@ func (b *BTree) rangeKeys(start, end []byte, x *Node) ([]interface{}, error) {
return keys, nil
}

// removeNilFromKeys removes nil keys from a slice of keys
func removeNilFromKeys(keys []*Key) []*Key {
newKeys := make([]*Key, 0)
for _, key := range keys {
Expand Down
4 changes: 0 additions & 4 deletions btree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package btree

import (
"fmt"
"log"
"os"
"strconv"
"testing"
Expand Down Expand Up @@ -126,9 +125,6 @@ func TestBTree_Delete(t *testing.T) {
if err != nil {
t.Fatal(err)
}

log.Println("Deleted key", i)

key, err := btree.Get([]byte(strconv.Itoa(i)))
if key != nil {
t.Fatalf("expected key to be nil")
Expand Down

0 comments on commit 40ea83a

Please sign in to comment.