@@ -276,20 +276,12 @@ - (id)valueForKey: (OFString *)key { id ret; - if ([key hasPrefix: @"@"]) { - void *pool = objc_autoreleasePoolPush(); - - key = [key substringWithRange: of_range(1, key.length - 1)]; - ret = [[super valueForKey: key] retain]; - - objc_autoreleasePoolPop(pool); - - return [ret autorelease]; - } + if ([key isEqual: @"@count"]) + return [super valueForKey: @"count"]; ret = [OFMutableArray arrayWithCapacity: self.count]; for (id object in self) { id value = [object valueForKey: key]; @@ -306,21 +298,10 @@ } - (void)setValue: (id)value forKey: (OFString *)key { - if ([key hasPrefix: @"@"]) { - void *pool = objc_autoreleasePoolPush(); - - key = [key substringWithRange: of_range(1, key.length - 1)]; - [super setValue: value - forKey: key]; - - objc_autoreleasePoolPop(pool); - return; - } - for (id object in self) [object setValue: value forKey: key]; }