From b6430bcc0917a92cbf74cbdae732b01b06859c74 Mon Sep 17 00:00:00 2001 From: Travis Date: Tue, 7 Mar 2017 15:25:36 -0600 Subject: [PATCH] remove code that is no longer used: - `cacheoveride` - `Bitmap.SetCount()` --- bitmap.go | 6 ------ fragment.go | 2 -- 2 files changed, 8 deletions(-) diff --git a/bitmap.go b/bitmap.go index d30a9192a..2e27ded7a 100644 --- a/bitmap.go +++ b/bitmap.go @@ -16,8 +16,6 @@ type Bitmap struct { // Attributes associated with the bitmap. Attrs map[string]interface{} - - cacheoveride uint64 } // NewBitmap returns a new instance of Bitmap. @@ -191,10 +189,6 @@ func (b *Bitmap) DecrementCount(i uint64) { } } } -func (b *Bitmap) SetCount(i uint64, count uint64) { - seg := b.segment(i / SliceWidth) - seg.n = count -} // Count returns the number of set bits in the bitmap. func (b *Bitmap) Count() uint64 { diff --git a/fragment.go b/fragment.go index 18306bc5d..e70dab80c 100644 --- a/fragment.go +++ b/fragment.go @@ -337,10 +337,8 @@ func (f *Fragment) bitmap(bitmapID uint64, checkBitmapCache bool, updateBitmapCa slice: f.slice, writable: false, }}, - cacheoveride: 0, } bm.InvalidateCount() - bm.cacheoveride = bm.Count() if updateBitmapCache { f.bitmapCache.Add(bitmapID, bm)