From 1b0083f31272c6b0130b5e02313e8d33684c49eb Mon Sep 17 00:00:00 2001 From: Daniel Strokis Date: Sat, 5 Dec 2015 20:03:16 -0500 Subject: [PATCH] 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. --- Foundation/NSIndexSet.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/Foundation/NSIndexSet.swift b/Foundation/NSIndexSet.swift index a7624160c1..f0e1a9331f 100644 --- a/Foundation/NSIndexSet.swift +++ b/Foundation/NSIndexSet.swift @@ -484,12 +484,10 @@ public class NSMutableIndexSet : NSIndexSet { } public func addIndex(value: Int) { - // TODO: Bounds checking self.addIndexesInRange(NSMakeRange(value, 1)) } public func removeIndex(value: Int) { - // TODO: Bounds checking self.removeIndexesInRange(NSMakeRange(value, 1)) }