Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.

Commit 57ff26b

Browse files
committed
Merge pull request #99 from svenmuennich/master
Remove NSLog statements
2 parents ad54fed + 2d79eb7 commit 57ff26b

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

AFOAuth2Manager/AFOAuth2Manager.m

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,6 @@ + (BOOL)storeCredential:(AFOAuthCredential *)credential
379379
status = SecItemAdd((__bridge CFDictionaryRef)queryDictionary, NULL);
380380
}
381381

382-
if (status != errSecSuccess) {
383-
NSLog(@"Unable to %@ credential with identifier \"%@\" (Error %li)", exists ? @"update" : @"add", identifier, (long int)status);
384-
}
385-
386382
return (status == errSecSuccess);
387383
}
388384

@@ -391,10 +387,6 @@ + (BOOL)deleteCredentialWithIdentifier:(NSString *)identifier {
391387

392388
OSStatus status = SecItemDelete((__bridge CFDictionaryRef)queryDictionary);
393389

394-
if (status != errSecSuccess) {
395-
NSLog(@"Unable to delete credential with identifier \"%@\" (Error %li)", identifier, (long int)status);
396-
}
397-
398390
return (status == errSecSuccess);
399391
}
400392

@@ -407,7 +399,6 @@ + (AFOAuthCredential *)retrieveCredentialWithIdentifier:(NSString *)identifier {
407399
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)queryDictionary, (CFTypeRef *)&result);
408400

409401
if (status != errSecSuccess) {
410-
NSLog(@"Unable to fetch credential with identifier \"%@\" (Error %li)", identifier, (long int)status);
411402
return nil;
412403
}
413404

0 commit comments

Comments
 (0)