mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-08 05:17:15 +00:00
Monotone-Parent: b1c2ca52ec5ce74741f62b95f3be18e4d6c99949
Monotone-Revision: ef48f0aa709b92913c131c539cb55562e8c56ebf Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-03-01T21:55:41
This commit is contained in:
1 parent
f42bb82deb
commit
22181c5996
3 files changed
+23
No files matched your search
@@ -324,4 +324,20 @@
|
||||
return response;
|
||||
}
|
||||
|
||||
- (void) removeDoubles
|
||||
{
|
||||
NSMutableDictionary *valueDicts;
|
||||
NSNull *dummy;
|
||||
NSUInteger count, max;
|
||||
|
||||
dummy = [NSNull null];
|
||||
|
||||
max = [self count];
|
||||
valueDicts = [NSMutableDictionary dictionaryWithCapacity: max];
|
||||
|
||||
for (count = 0; count < max; count++)
|
||||
[valueDicts setObject: dummy forKey: [self objectAtIndex: count]];
|
||||
[self setArray: [valueDicts allKeys]];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user