summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-28 21:21:58 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:31 -0800
commit5276ff21e3ed70bb2c65099fff053e7eac49a936 (patch)
treecf376b7212197be2f3bcae125fbc4f3ae7f69a74 /MobileCydia.mm
parentf172aa8f89e1ab4ae00f63ea961e04a8125ba419 (diff)
Move WebScriptObject (NSFastEnumeration) to (Cyte).
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm17
1 files changed, 0 insertions, 17 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 1507541..132c31e 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -588,23 +588,6 @@ void CFArrayInsertionSortValues(CFMutableArrayRef array, CFRange range, CFCompar
@end
-@implementation WebScriptObject (NSFastEnumeration)
-
-- (NSUInteger) countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)objects count:(NSUInteger)count {
- size_t length([self count] - state->state);
- if (length <= 0)
- return 0;
- else if (length > count)
- length = count;
- for (size_t i(0); i != length; ++i)
- objects[i] = [self objectAtIndex:state->state++];
- state->itemsPtr = objects;
- state->mutationsPtr = (unsigned long *) self;
- return length;
-}
-
-@end
-
NSUInteger DOMNodeList$countByEnumeratingWithState$objects$count$(DOMNodeList *self, SEL sel, NSFastEnumerationState *state, id *objects, NSUInteger count) {
size_t length([self length] - state->state);
if (length <= 0)