diff --git a/camino/src/extensions/NSArray+Utils.h b/camino/src/extensions/NSArray+Utils.h index 9eedfa55c09..b2c28313f22 100644 --- a/camino/src/extensions/NSArray+Utils.h +++ b/camino/src/extensions/NSArray+Utils.h @@ -41,7 +41,6 @@ @interface NSArray(CaminoNSArrayUtils) - (id)firstObject; -- (id)lastObject; // just returns nil if out of range, rather than throwing. - (id)safeObjectAtIndex:(unsigned)inIndex; diff --git a/camino/src/extensions/NSArray+Utils.mm b/camino/src/extensions/NSArray+Utils.mm index 4cb9c8433cd..fe0ac5e0d7c 100644 --- a/camino/src/extensions/NSArray+Utils.mm +++ b/camino/src/extensions/NSArray+Utils.mm @@ -47,14 +47,6 @@ return nil; } -- (id)lastObject -{ - if ([self count] > 0) - return [self objectAtIndex:[self count] - 1]; - - return nil; -} - - (id)safeObjectAtIndex:(unsigned)inIndex { return (inIndex < [self count]) ? [self objectAtIndex:inIndex] : nil;