From 0712fccbb15fa9cfcf56dd08053a6f98a6f9e233 Mon Sep 17 00:00:00 2001 From: michael starke Date: Fri, 13 Oct 2017 16:42:09 +0200 Subject: [PATCH] removed commented unused code --- MacPass/MPDocumentWindowController.m | 34 ---------------------------- 1 file changed, 34 deletions(-) diff --git a/MacPass/MPDocumentWindowController.m b/MacPass/MPDocumentWindowController.m index c784d139..9d1474b5 100644 --- a/MacPass/MPDocumentWindowController.m +++ b/MacPass/MPDocumentWindowController.m @@ -210,40 +210,6 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword); #pragma mark Actions - (void)saveDocument:(id)sender { MPDocument *document = self.document; - /* did we open as legacy ? - - NSString *fileType = document.fileType; - if([fileType isEqualToString:MPKdbxDocumentUTI]) { - if(document.tree.minimumVersion.format != KPKDatabaseFormatKdb) { - NSAlert *alert = [[NSAlert alloc] init]; - alert.alertStyle = NSWarningAlertStyle; - alert.messageText = NSLocalizedString(@"WARNING_ON_LOSSY_SAVE", ""); - alert.informativeText = NSLocalizedString(@"WARNING_ON_LOSSY_SAVE_DESCRIPTION", "Informative Text displayed when saving would yield data loss"); - - [alert addButtonWithTitle:NSLocalizedString(@"SAVE_LOSSY", "Save lossy")]; - [alert addButtonWithTitle:NSLocalizedString(@"CHANGE_FORMAT", "")]; - [alert addButtonWithTitle:NSLocalizedString(@"CANCEL", "Cancel")]; - [alert beginSheetModalForWindow:((NSDocument *)self.document).windowForSheet completionHandler:^(NSModalResponse returnCode) { - switch(returnCode) { - case NSAlertFirstButtonReturn: - // save lossy - [self.document saveDocument:nil]; - return; - - case NSAlertSecondButtonReturn: - [alert.window orderOut:nil]; - [self.document saveDocumentAs:nil]; - return; - - case NSAlertThirdButtonReturn: - default: - return; // Cancel or unknown - } - }]; - return; - } - } - else*/ if(!document.compositeKey) { [self editPasswordWithCompetionHandler:^(NSInteger result) { if(result == NSModalResponseOK) {