(key uint32)
| 244 | } |
| 245 | |
| 246 | func (ra *roaringArray64) remove(key uint32) bool { |
| 247 | i := ra.binarySearch(0, int64(len(ra.keys)), key) |
| 248 | if i >= 0 { // if a new key |
| 249 | ra.removeAtIndex(i) |
| 250 | return true |
| 251 | } |
| 252 | return false |
| 253 | } |
| 254 | |
| 255 | func (ra *roaringArray64) removeAtIndex(i int) { |
| 256 | copy(ra.keys[i:], ra.keys[i+1:]) |
nothing calls this directly
no test coverage detected