Loading...
libkern/c++/OSSet.cpp xnu-3248.50.21 xnu-1699.26.8
--- xnu/xnu-3248.50.21/libkern/c++/OSSet.cpp
+++ xnu/xnu-1699.26.8/libkern/c++/OSSet.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2014 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
@@ -77,7 +77,7 @@
 
     for ( unsigned int i = 0; i < inCount; i++ ) {
 // xx-review: no test here for failure of setObject()
-        if (members->getCount() < capacity)
+        if (members->getCount() < inCapacity)
             setObject(inObjects[i]);
         else
             return false;
@@ -280,8 +280,6 @@
 
     for ( i = 0; i < count; i++ ) {
         obj1 = aSet->members->getObject(i);
-	if (containsObject(obj1))
-		continue;
         obj2 = members->getObject(i);
         if ( !obj1 || !obj2 )
                 return false;