Skip to content

Commit 9e764bb

Browse files
committed
cleanup 4
1 parent f2f7fb3 commit 9e764bb

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

bitmap.go

-52
Original file line numberDiff line numberDiff line change
@@ -548,58 +548,6 @@ func (ra *Bitmap) Contains(x uint64) bool {
548548
return false
549549
}
550550

551-
// func (ra *Bitmap) Contained(xs []uint64) ([]uint64, time.Duration) {
552-
// if ra == nil || ra.IsEmpty() {
553-
// return []uint64{}, 0
554-
// }
555-
// if len(xs) == 0 {
556-
// return []uint64{}, 0
557-
// }
558-
559-
// // slices.SortFunc(xs, func(a, b uint64) int {
560-
// // if a > b {
561-
// // return 1
562-
// // }
563-
// // if a < b {
564-
// // return -1
565-
// // }
566-
// // return 0
567-
// // })
568-
569-
// bm := FromSortedList(xs)
570-
// t := time.Now()
571-
// bm.And(ra)
572-
// // a := bm.ToArray()
573-
// d := time.Since(t)
574-
// return nil, d
575-
// }
576-
577-
// func (ra *Bitmap) Contained2(xs []uint64, bufs [][]uint16) ([]uint64, time.Duration) {
578-
// if ra == nil || ra.IsEmpty() {
579-
// return []uint64{}, 0
580-
// }
581-
// if len(xs) == 0 {
582-
// return []uint64{}, 0
583-
// }
584-
585-
// // slices.SortFunc(xs, func(a, b uint64) int {
586-
// // if a > b {
587-
// // return 1
588-
// // }
589-
// // if a < b {
590-
// // return -1
591-
// // }
592-
// // return 0
593-
// // })
594-
595-
// bm := FromSortedList(xs)
596-
// t := time.Now()
597-
// bm.AndConcurrently(ra, bufs...)
598-
// // a := bm.ToArray()
599-
// d := time.Since(t)
600-
// return nil, d
601-
// }
602-
603551
func (ra *Bitmap) Remove(x uint64) bool {
604552
if ra == nil {
605553
return false

0 commit comments

Comments
 (0)