Skip to content

Commit 2e3a2d2

Browse files
author
Ricardo Pramana Suranta
committed
Remove unused arrayFromDictionary:forKey: method in JSONAPI.m
1 parent 0388c17 commit 2e3a2d2

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Classes/JSONAPI.m

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,6 @@ - (BOOL)hasErrors {
7272
return _errors.count > 0;
7373
}
7474

75-
- (NSMutableArray *)arrayFromDictionary:(NSDictionary *)dictionary withKey:(NSString *)key
76-
{
77-
NSMutableArray *array = [[NSMutableArray alloc]init];
78-
79-
if([[dictionary objectForKey:key] isKindOfClass:[NSDictionary class]]) {
80-
[array addObject:[dictionary objectForKey:key]];
81-
}
82-
else {
83-
array = [dictionary objectForKey:key];
84-
}
85-
86-
return array;
87-
}
88-
8975
#pragma mark - Private
9076

9177
- (void)inflateWithDictionary:(NSDictionary*)dictionary {

0 commit comments

Comments
 (0)