remove code that is no longer used:

- `cacheoveride`
- `Bitmap.SetCount()`
This commit is contained in:
Travis 2017-03-07 15:25:36 -06:00
parent 75e12740d3
commit b6430bcc09
2 changed files with 0 additions and 8 deletions

View file

@ -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 {

View file

@ -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)