From fccc7070060720cb8174ea635a95a80d1a41bede Mon Sep 17 00:00:00 2001 From: Richard Artoul Date: Thu, 29 Nov 2018 11:32:44 -0500 Subject: [PATCH] remove debug code --- roaring/roaring.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/roaring/roaring.go b/roaring/roaring.go index 60476d89f..b2b6fdf39 100644 --- a/roaring/roaring.go +++ b/roaring/roaring.go @@ -424,15 +424,6 @@ type wrapperIter struct { // be left unchanged, but target will be modified in place. Used to share // the union logic between the copy-on-write and in-place functions. func (b *Bitmap) unionIntoTarget(target *Bitmap, others ...*Bitmap) { - numArrayIntoBitmap := 0 - numRunIntoBitmap := 0 - numBitmapIntoBitmap := 0 - // defer func() { - // fmt.Println("numArrayIntoBitmap: ", numArrayIntoBitmap) - // fmt.Println("numRunIntoBitmap: ", numRunIntoBitmap) - // fmt.Println("numBitmapIntoBitmap: ", numBitmapIntoBitmap) - // }() - otherIters := make([]wrapperIter, 0, len(others)+1) bIter, _ := b.Containers.Iterator(0) next := bIter.Next() @@ -537,13 +528,10 @@ func (b *Bitmap) unionIntoTarget(target *Bitmap, others ...*Bitmap) { if iKey == jKey { if jContainer.isArray() { - numArrayIntoBitmap++ unionBitmapArrayInPlace(container, jContainer) } else if jContainer.isRun() { - numRunIntoBitmap++ unionBitmapRunInPlace(container, jContainer) } else { - numBitmapIntoBitmap++ unionBitmapBitmapInPlace(container, jContainer) } otherIters[j].handled = true