Fixed Typos in KPKErrorCode

Removed unused error message switch since the errors get localized correctly
This commit is contained in:
michael starke
2014-03-03 00:21:02 +01:00
parent de30cf5407
commit 0af0d08082
2 changed files with 2 additions and 33 deletions

View File

@@ -12,37 +12,6 @@
@implementation NSError (Messages)
- (NSString *)descriptionForErrorCode {
switch ([self code]) {
case KPKErrorUnknownFileFormat:
case KPKErrorUnsupportedDatabaseVersion:
case KPKErrorNoData:
case KPKErrorHeaderCorrupted:
case KPKErrorWriteFailed:
case KPKErrorEncryptionFaild:
case KPKErrorDecryptionFaild:
case KPKErrorDatabaseParsingFailed:
case KPKerrorXMLKeyUnsupportedVersion:
case KPKErrorXMLKeyKeyElementMissing:
case KPKErrorXMLKeyDataElementMissing:
case KPKErrorXMLKeyDataParsingError:
case KPKErrorUnsupportedCipher:
case KPKErrorUnsupportedCompressionAlgorithm:
case KPKErrorUnsupportedRandomStream:
case KPKErrorPasswordAndOrKeyfileWrong:
case KPKErrorIntegrityCheckFaild:
case KPKErrorXMLKeePassFileElementMissing:
case KPKErrorXMLRootElementMissing:
case KPKErrorXMLMetaElementMissing:
case KPKErrorXMLGroupElementMissing:
case KPKErrorXMLInvalidHeaderFieldSize:
case KPKErrorXMLInvalidHeaderFieldType:
case KPKErrorLegacyInvalidFieldType:
case KPKErrorLegacyInvalidFieldSize:
case KPKErrorLegacyHeaderHashCorrupted:
case KPKErrorLegacyCorruptTree:
default: {
return [NSString stringWithFormat:@"%@ (%ld)", [self localizedDescription], [self code] ];
}
}
}
@end