From 87f31cab70b64a2c10e09e53a7807db3814e96db Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 21 Sep 2023 22:00:04 -0400 Subject: [PATCH] MacPDF: Remove application restore logging again --- Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.mm | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.mm b/Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.mm index 9325ff3c97..d3442f5785 100644 --- a/Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.mm +++ b/Meta/Lagom/Contrib/MacPDF/LagomPDFDocument.mm @@ -47,37 +47,11 @@ { [super windowControllerDidLoadNib:aController]; - NSLog(@"restorationClass %@", aController.window.restorationClass); - NSLog(@"restorable %@", @(aController.window.restorable)); - NSLog(@"identifier %@", aController.window.identifier); - if (_doc) { [_pdfView setDocument:_doc->make_weak_ptr()]; } } -+ (NSArray*)allowedClassesForRestorableStateKeyPath:(NSString*)keyPath -{ - auto res = [NSDocument allowedClassesForRestorableStateKeyPath:keyPath]; - NSLog(@"restore %@", res); - return res; -} - -- (void)restoreDocumentWindowWithIdentifier:(NSUserInterfaceItemIdentifier)identifier - state:(NSCoder*)state - completionHandler:(void (^)(NSWindow*, NSError*))completionHandler -{ - NSLog(@"here restoreDocumentWindowWithIdentifier"); - return [super restoreDocumentWindowWithIdentifier:identifier state:state completionHandler:completionHandler]; -} - -- (void)encodeRestorableStateWithCoder:(NSCoder*)coder -{ - // called on switch away from app - NSLog(@"here encodeRestorableStateWithCoder"); - [super encodeRestorableStateWithCoder:coder]; -} - - (NSData*)dataOfType:(NSString*)typeName error:(NSError**)outError { // Insert code here to write your document to data of the specified type. If outError != NULL, ensure that you create and set an appropriate error if you return nil.