diff --git a/MacDown/Code/Application/MPMainController.m b/MacDown/Code/Application/MPMainController.m index 7d62da86..ed558ca1 100644 --- a/MacDown/Code/Application/MPMainController.m +++ b/MacDown/Code/Application/MPMainController.m @@ -102,21 +102,6 @@ @implementation MPMainController - (void)applicationDidFinishLaunching:(NSNotification *)notification { - // Using private API [WebCache setDisabled:YES] to disable WebView's cache - id webCacheClass = (id)NSClassFromString(@"WebCache"); - if (webCacheClass) { -// Ignoring "undeclared selector" warning -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wundeclared-selector" - BOOL setDisabledValue = YES; - NSMethodSignature *signature = [webCacheClass methodSignatureForSelector:@selector(setDisabled:)]; - NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; - invocation.selector = @selector(setDisabled:); - invocation.target = [webCacheClass class]; - [invocation setArgument:&setDisabledValue atIndex:2]; - [invocation invoke]; -#pragma clang diagnostic pop - } [[NSAppleEventManager sharedAppleEventManager] setEventHandler:self andSelector:@selector(openUrlSchemeAppleEvent:withReplyEvent:)