diff --git a/index/scorch/segment/zap/posting.go b/index/scorch/segment/zap/posting.go index ef21df8d..8106ebcc 100644 --- a/index/scorch/segment/zap/posting.go +++ b/index/scorch/segment/zap/posting.go @@ -57,18 +57,6 @@ type PostingsList struct { func (p *PostingsList) Size() int { sizeInBytes := reflectStaticSizePostingsList + size.SizeOfPtr - if p.sb != nil { - sizeInBytes += (p.sb.Size() - len(p.sb.mem)) // do not include the mmap'ed part - } - - if p.locBitmap != nil { - sizeInBytes += int(p.locBitmap.GetSizeInBytes()) - } - - if p.postings != nil { - sizeInBytes += int(p.postings.GetSizeInBytes()) - } - if p.except != nil { sizeInBytes += int(p.except.GetSizeInBytes()) }