From e8dc319c2e5d9c0e49c03776276563572943d4f7 Mon Sep 17 00:00:00 2001 From: Tom Harrington Date: Fri, 29 Dec 2017 20:48:41 -0700 Subject: Move unavailable initializers out of categories, so they’ll be properly handled in Swift. (#1698) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If NS_UNAVAILABLE is used in a category, Swift doesn’t notice, and these initializers are permitted even though they don’t work. --- src/objc/abstract/MCOAbstractPart.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/objc/abstract/MCOAbstractPart.h') diff --git a/src/objc/abstract/MCOAbstractPart.h b/src/objc/abstract/MCOAbstractPart.h index 8bff41dd..133a6f25 100644 --- a/src/objc/abstract/MCOAbstractPart.h +++ b/src/objc/abstract/MCOAbstractPart.h @@ -107,10 +107,7 @@ namespace mailcore { /** Returns an array with the names of all content type parameters.*/ - (NSArray * /* NSString */) allContentTypeParametersNames; -@end - -@interface MCOAbstractPart (MCOUnavailable) - +#pragma mark - Unavailable initializers /** Do not invoke this directly. */ - (instancetype) init NS_UNAVAILABLE; /** Do not invoke this directly. */ -- cgit v1.2.3