Skip to content

Commit 1b0083f

Browse files
committed
Removed the TODO comments regarding bounds checking from the methods removeIndex: and addIndex:. The bounds checking is already done at removeIndexesinRange: and addIndexesInRange:, which removeIndex: and addIndex: call through to respectively.
1 parent a632e37 commit 1b0083f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Foundation/NSIndexSet.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,12 +484,10 @@ public class NSMutableIndexSet : NSIndexSet {
484484
}
485485

486486
public func addIndex(value: Int) {
487-
// TODO: Bounds checking
488487
self.addIndexesInRange(NSMakeRange(value, 1))
489488
}
490489

491490
public func removeIndex(value: Int) {
492-
// TODO: Bounds checking
493491
self.removeIndexesInRange(NSMakeRange(value, 1))
494492
}
495493

0 commit comments

Comments
 (0)