From 3e61bec9a8c1ed5ef46839b5bdfb8b72d70e406a Mon Sep 17 00:00:00 2001 From: achmizs Date: Sat, 16 Jan 2016 22:14:14 -0500 Subject: [PATCH] Remove extraneous logging. --- SA_DiceFormatter.m | 12 ++---------- SA_DiceParser.m | 6 +----- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/SA_DiceFormatter.m b/SA_DiceFormatter.m index 29b8f1f..dfdf2df 100644 --- a/SA_DiceFormatter.m +++ b/SA_DiceFormatter.m @@ -388,11 +388,7 @@ static NSDictionary *_stringFormatRules; { NSString* errorDescriptionsPath = [[NSBundle bundleForClass:[self class]] pathForResource:@"SA_DB_ErrorDescriptions" ofType:@"plist"]; _errorDescriptions = [NSDictionary dictionaryWithContentsOfFile:errorDescriptionsPath]; - if(_errorDescriptions) - { - NSLog(@"Error descriptions loaded successfully."); - } - else + if(!_errorDescriptions) { NSLog(@"Could not load error descriptions!"); } @@ -419,11 +415,7 @@ static NSDictionary *_stringFormatRules; { NSString *stringFormatRulesPath = [[NSBundle bundleForClass:[self class]] pathForResource:SA_DB_STRING_FORMAT_RULES_PLIST_NAME ofType:@"plist"]; _stringFormatRules = [NSDictionary dictionaryWithContentsOfFile:stringFormatRulesPath]; - if(_stringFormatRules) - { - NSLog(@"String format rules loaded successfully."); - } - else + if(!_stringFormatRules) { NSLog(@"Could not load string format rules!"); } diff --git a/SA_DiceParser.m b/SA_DiceParser.m index e02e644..9cafff7 100644 --- a/SA_DiceParser.m +++ b/SA_DiceParser.m @@ -357,11 +357,7 @@ static NSDictionary *_validCharactersDict; { NSString *stringFormatRulesPath = [[NSBundle bundleForClass:[self class]] pathForResource:SA_DB_STRING_FORMAT_RULES_PLIST_NAME ofType:@"plist"]; _validCharactersDict = [NSDictionary dictionaryWithContentsOfFile:stringFormatRulesPath][SA_DB_VALID_CHARACTERS]; - if(_validCharactersDict) - { - NSLog(@"Valid characters dictionary loaded successfully."); - } - else + if(!_validCharactersDict) { NSLog(@"Could not load valid characters dictionary!"); }