Skip to content
This repository has been archived by the owner on Jan 3, 2021. It is now read-only.

Commit

Permalink
Update NSManagedObjectContext-EasyFetch.m
Browse files Browse the repository at this point in the history
  • Loading branch information
halostatue committed Jan 26, 2012
1 parent 5dd0498 commit 6589fd2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions NSManagedObjectContext-EasyFetch.m
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ - (NSArray*)fetchObjectsForEntityName:(NSString*)entityName
NSFetchRequest* request = [[NSFetchRequest alloc] init];

#if !__has_feature(objc_arc)
[request retain];
[request autorelease];
#endif

[request setEntity:entity];
Expand All @@ -130,10 +130,6 @@ - (NSArray*)fetchObjectsForEntityName:(NSString*)entityName
NSError* error = nil;
NSArray* results = [self executeFetchRequest:request error:&error];

#if !__has_feature(objc_arc)
[request release];
#endif

if (error != nil)
{
NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
Expand Down

0 comments on commit 6589fd2

Please sign in to comment.